mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-23 22:59:55 +02:00
b4fcbf1114
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20444 3c298f89-4303-0410-b956-a3cf2f4a3e73
32 lines
993 B
Diff
32 lines
993 B
Diff
--- a/drivers/net/au1000_eth.c
|
|
+++ b/drivers/net/au1000_eth.c
|
|
@@ -167,6 +167,15 @@ struct au1000_private *au_macs[NUM_ETH_I
|
|
# 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
|
|
@@ -484,6 +493,12 @@ static int mii_probe (struct net_device
|
|
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, dev_name(&phydev->dev), phydev->irq);
|