diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-11-15 14:55:08 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-11-15 14:55:08 +0000 |
commit | efde9bfbde559812e4b040b437b611525dc015c6 (patch) | |
tree | 4bc891bcc582ffa3846e71d31b7155182fd7b839 /target/linux/au1000/patches-2.6.27/004-state_led_phy_fix.patch | |
parent | da517311c01cd6c576a8dd862ae9c0e75ecdb830 (diff) |
Use 2.6.27 for au1000
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13220 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/au1000/patches-2.6.27/004-state_led_phy_fix.patch')
-rw-r--r-- | target/linux/au1000/patches-2.6.27/004-state_led_phy_fix.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/target/linux/au1000/patches-2.6.27/004-state_led_phy_fix.patch b/target/linux/au1000/patches-2.6.27/004-state_led_phy_fix.patch new file mode 100644 index 0000000000..3e5a4ebf01 --- /dev/null +++ b/target/linux/au1000/patches-2.6.27/004-state_led_phy_fix.patch @@ -0,0 +1,31 @@ +--- linux-2.6.27/drivers/net/au1000_eth.c 2008-10-18 22:37:52.000000000 +0200 ++++ linux-2.6.27.new/drivers/net/au1000_eth.c 2008-11-02 22:03:14.000000000 +0100 +@@ -187,6 +187,15 @@ + # undef AU1XXX_PHY1_IRQ + #endif + ++#if defined(CONFIG_MIPS_MTX1) ++/* ++ * 4G MeshCube (MTX-1) board ++ * PHY is at address 31 on MAC0 ++ * autodetect fails if not searched for highest address ! ++ */ ++# define AU1XXX_PHY_SEARCH_HIGHEST_ADDR ++#endif ++ + #if defined(AU1XXX_PHY0_BUSID) && (AU1XXX_PHY0_BUSID > 0) + # error MAC0-associated PHY attached 2nd MACs MII bus not supported yet + #endif +@@ -383,6 +392,12 @@ + aup->old_duplex = -1; + aup->phy_dev = phydev; + ++#ifdef CONFIG_MIPS_MTX1 ++ /* set up ethernet jack LEDs on the 4G MeshCube (MTX-1 board) */ ++ printk(KERN_INFO "MTX-1 PHY: updating LED settings\n"); ++ phy_write(phydev, 0x11, 0xff80); ++#endif ++ + printk(KERN_INFO "%s: attached PHY driver [%s] " + "(mii_bus:phy_addr=%s, irq=%d)\n", + dev->name, phydev->drv->name, phydev->dev.bus_id, phydev->irq); |