Changeset 2c63d359 in freewrt
- Timestamp:
- Jun 10, 2006, 10:14:43 AM (20 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 4399811
- Parents:
- 0316f4d
- File:
-
- 1 edited
-
target/linux/brcm-2.4/patches/001-bcm47xx.patch (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
target/linux/brcm-2.4/patches/001-bcm47xx.patch
r0316f4d r2c63d359 15752 15752 --- linux.old/arch/mips/bcm947xx/time.c 1970-01-01 01:00:00.000000000 +0100 15753 15753 +++ linux.dev/arch/mips/bcm947xx/time.c 2006-04-28 00:45:40.000000000 +0200 15754 @@ -0,0 +1,1 19@@15754 @@ -0,0 +1,104 @@ 15755 15755 +/* 15756 15756 + * Copyright 2006, Broadcom Corporation … … 15829 15829 + /* Set panic timeout in seconds */ 15830 15830 + panic_timeout = watchdog / 1000; 15831 +15832 + /* Setup blink */15833 + if ((eir = sb_setcore(sbh, SB_EXTIF, 0))) {15834 + sbconfig_t *sb = (sbconfig_t *)((unsigned int) eir + SBCONFIGOFF);15835 + unsigned long base = EXTIF_CFGIF_BASE(sb_base(readl(&sb->sbadmatch1)));15836 + mcr = (u8 *) ioremap_nocache(base + UART_MCR, 1);15837 + }15838 15831 +} 15839 15832 + … … 15847 15840 + if (watchdog > 0) 15848 15841 + sb_watchdog(sbh, WATCHDOG_CLOCK / 1000 * watchdog); 15849 +15850 +#ifdef CONFIG_HWSIM15851 + (*((int *)0xa0000f1c))++;15852 +#else15853 + /* Blink one of the LEDs in the external UART */15854 + if (mcr && !(jiffies % (HZ/2)))15855 + writeb(readb(mcr) ^ UART_MCR_OUT2, mcr);15856 +#endif15857 15842 +} 15858 15843 +
Note:
See TracChangeset
for help on using the changeset viewer.
