toolchain/uClibc: sync to latest uClibc-0.9.32
[openwrt.git] / package / uboot-ifxmips / patches / 130-a800.patch
1 --- a/drivers/ifx_sw.c
2 +++ b/drivers/ifx_sw.c
3 @@ -118,7 +118,7 @@ int danube_switch_initialize(bd_t * bis)
4 {
5 struct eth_device *dev;
6 unsigned short chipid;
7 -
8 + int i;
9 #if 0
10 printf("Entered danube_switch_initialize()\n");
11 #endif
12 @@ -130,6 +130,19 @@ int danube_switch_initialize(bd_t * bis)
13 }
14 memset(dev, 0, sizeof(*dev));
15
16 +#ifdef A800_SWITCH
17 + printf ("bring up a800 switch and leds\n");
18 + *EBU_CON_1 = 0x1e7ff;
19 + *EBU_ADDR_SEL_1 = 0x14000001;
20 +
21 + *((volatile u16*)0xb4000000) = 0x0;
22 + for(i = 0; i < 1000; i++)
23 + udelay(1000);
24 + *((volatile u16*)0xb4000000) = (1 << 10);
25 + *EBU_CON_1 = 0x8001e7ff;
26 +#define CLK_OUT2_25MHZ
27 +#endif
28 +
29 danube_dma_init();
30 danube_init_switch_chip(REV_MII_MODE);
31
This page took 0.050573 seconds and 5 git commands to generate.