enable switch support on Compex boards
authorGabor Juhos <juhosg@openwrt.org>
Mon, 28 Apr 2008 18:45:27 +0000 (18:45 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 28 Apr 2008 18:45:27 +0000 (18:45 +0000)
SVN-Revision: 10967

target/linux/ixp4xx/patches-2.6.24/250-compex_switch_support.patch [new file with mode: 0644]

diff --git a/target/linux/ixp4xx/patches-2.6.24/250-compex_switch_support.patch b/target/linux/ixp4xx/patches-2.6.24/250-compex_switch_support.patch
new file mode 100644 (file)
index 0000000..f887b41
--- /dev/null
@@ -0,0 +1,14 @@
+Index: linux-2.6.24.2/arch/arm/mach-ixp4xx/compex-setup.c
+===================================================================
+--- linux-2.6.24.2.orig/arch/arm/mach-ixp4xx/compex-setup.c
++++ linux-2.6.24.2/arch/arm/mach-ixp4xx/compex-setup.c
+@@ -93,7 +93,8 @@ static struct platform_device compex_uar
+ /* Built-in 10/100 Ethernet MAC interfaces */
+ static struct eth_plat_info compex_plat_eth[] = {
+       {
+-              .phy            = -1,
++              .phy            = IXP4XX_ETH_PHY_MAX_ADDR,
++              .phy_mask       = 0xf0000, /* port 0-4 of the Marvell switch */
+               .rxq            = 3,
+               .txreadyq       = 20,
+       }, {