Date:2010-08-15 07:39:29 (13 years 7 months ago)
Author:juhosg
Commit:7ebc0dfae5ee6454381f809efc33b7d7cce295ad
Message:ixp4xx: fix compiler warnings in tw5334-setup.c

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22654 3c298f89-4303-0410-b956-a3cf2f4a3e73
Files: target/linux/ixp4xx/patches-2.6.32/180-tw5334_support.patch (2 diffs)
target/linux/ixp4xx/patches-2.6.33/180-tw5334_support.patch (2 diffs)
target/linux/ixp4xx/patches-2.6.34/180-tw5334_support.patch (2 diffs)
target/linux/ixp4xx/patches-2.6.35/180-tw5334_support.patch (2 diffs)

Change Details

target/linux/ixp4xx/patches-2.6.32/180-tw5334_support.patch
3535 obj-$(CONFIG_IXP4XX_QMGR) += ixp4xx_qmgr.o
3636--- /dev/null
3737+++ b/arch/arm/mach-ixp4xx/tw5334-setup.c
38@@ -0,0 +1,162 @@
38@@ -0,0 +1,163 @@
3939+/*
4040+ * arch/arm/mach-ixp4xx/tw5334-setup.c
4141+ *
...... 
169169+ */
170170+ f = ioremap(IXP4XX_EXP_BUS_BASE(0), 0x1000000);
171171+ if (f) {
172+ for (i = 0; i < 6; i++)
172+ for (i = 0; i < 6; i++) {
173173+#ifdef __ARMEB__
174+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
175+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
174+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
175+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
176176+#else
177+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
178+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
177+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
178+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
179179+#endif
180+ }
180181+ iounmap(f);
181182+ }
182183+
target/linux/ixp4xx/patches-2.6.33/180-tw5334_support.patch
3535 obj-$(CONFIG_IXP4XX_QMGR) += ixp4xx_qmgr.o
3636--- /dev/null
3737+++ b/arch/arm/mach-ixp4xx/tw5334-setup.c
38@@ -0,0 +1,162 @@
38@@ -0,0 +1,163 @@
3939+/*
4040+ * arch/arm/mach-ixp4xx/tw5334-setup.c
4141+ *
...... 
169169+ */
170170+ f = ioremap(IXP4XX_EXP_BUS_BASE(0), 0x1000000);
171171+ if (f) {
172+ for (i = 0; i < 6; i++)
172+ for (i = 0; i < 6; i++) {
173173+#ifdef __ARMEB__
174+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
175+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
174+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
175+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
176176+#else
177+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
178+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
177+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
178+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
179179+#endif
180+ }
180181+ iounmap(f);
181182+ }
182183+
target/linux/ixp4xx/patches-2.6.34/180-tw5334_support.patch
3535 obj-$(CONFIG_IXP4XX_QMGR) += ixp4xx_qmgr.o
3636--- /dev/null
3737+++ b/arch/arm/mach-ixp4xx/tw5334-setup.c
38@@ -0,0 +1,162 @@
38@@ -0,0 +1,163 @@
3939+/*
4040+ * arch/arm/mach-ixp4xx/tw5334-setup.c
4141+ *
...... 
169169+ */
170170+ f = ioremap(IXP4XX_EXP_BUS_BASE(0), 0x1000000);
171171+ if (f) {
172+ for (i = 0; i < 6; i++)
172+ for (i = 0; i < 6; i++) {
173173+#ifdef __ARMEB__
174+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
175+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
174+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
175+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
176176+#else
177+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
178+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
177+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
178+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
179179+#endif
180+ }
180181+ iounmap(f);
181182+ }
182183+
target/linux/ixp4xx/patches-2.6.35/180-tw5334_support.patch
3535 obj-$(CONFIG_IXP4XX_QMGR) += ixp4xx_qmgr.o
3636--- /dev/null
3737+++ b/arch/arm/mach-ixp4xx/tw5334-setup.c
38@@ -0,0 +1,162 @@
38@@ -0,0 +1,163 @@
3939+/*
4040+ * arch/arm/mach-ixp4xx/tw5334-setup.c
4141+ *
...... 
169169+ */
170170+ f = ioremap(IXP4XX_EXP_BUS_BASE(0), 0x1000000);
171171+ if (f) {
172+ for (i = 0; i < 6; i++)
172+ for (i = 0; i < 6; i++) {
173173+#ifdef __ARMEB__
174+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
175+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
174+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + i);
175+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + i);
176176+#else
177+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
178+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
177+ tw5334_plat_eth[0].hwaddr[i] = readb(f + 0xFC0422 + (i^3));
178+ tw5334_plat_eth[1].hwaddr[i] = readb(f + 0xFC043B + (i^3));
179179+#endif
180+ }
180181+ iounmap(f);
181182+ }
182183+

Archive Download the corresponding diff file



interactive