aboutsummaryrefslogtreecommitdiffstats
path: root/package/uboot-ifxmips/patches/130-a800.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2010-03-24 18:28:07 +0000
committerJohn Crispin <john@openwrt.org>2010-03-24 18:28:07 +0000
commit6cb7284fe0c5c312045b3038f332642ec8bc088d (patch)
treed6993c9cec2f02ee5ab4d09030ce165040594da3 /package/uboot-ifxmips/patches/130-a800.patch
parent1f1ad83bc29e4f9b95540a9fd5a45cbba2128c9b (diff)
downloadupstream-6cb7284fe0c5c312045b3038f332642ec8bc088d.tar.gz
upstream-6cb7284fe0c5c312045b3038f332642ec8bc088d.tar.bz2
upstream-6cb7284fe0c5c312045b3038f332642ec8bc088d.zip
adds support to build uboot for arv452
SVN-Revision: 20408
Diffstat (limited to 'package/uboot-ifxmips/patches/130-a800.patch')
-rw-r--r--package/uboot-ifxmips/patches/130-a800.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/uboot-ifxmips/patches/130-a800.patch b/package/uboot-ifxmips/patches/130-a800.patch
new file mode 100644
index 0000000000..3e19e6c27d
--- /dev/null
+++ b/package/uboot-ifxmips/patches/130-a800.patch
@@ -0,0 +1,33 @@
+Index: u-boot-1.1.5/drivers/ifx_sw.c
+===================================================================
+--- u-boot-1.1.5.orig/drivers/ifx_sw.c 2010-03-24 19:21:19.000000000 +0100
++++ u-boot-1.1.5/drivers/ifx_sw.c 2010-03-24 19:23:09.000000000 +0100
+@@ -118,7 +118,7 @@
+ {
+ struct eth_device *dev;
+ unsigned short chipid;
+-
++ int i;
+ #if 0
+ printf("Entered danube_switch_initialize()\n");
+ #endif
+@@ -130,6 +130,19 @@
+ }
+ memset(dev, 0, sizeof(*dev));
+
++#ifdef A800_SWITCH
++ printf ("bring up a800 switch and leds\n");
++ *EBU_CON_1 = 0x1e7ff;
++ *EBU_ADDR_SEL_1 = 0x14000001;
++
++ *((volatile u16*)0xb4000000) = 0x0;
++ for(i = 0; i < 1000; i++)
++ udelay(1000);
++ *((volatile u16*)0xb4000000) = (1 << 10);
++ *EBU_CON_1 = 0x8001e7ff;
++#define CLK_OUT2_25MHZ
++#endif
++
+ danube_dma_init();
+ danube_init_switch_chip(REV_MII_MODE);
+