[U-Boot] [PATCH 2/2] LaCie/common: Fix cloudbox ethernet leds
Frederic Leroy
fredo at starox.org
Tue Jun 25 18:49:05 CEST 2013
From: Frédéric Leroy <fredo at starox.org>
The cloudbox device have a different ethernet phy setup than other ns2
devices. We get initialization value from the GPL LaCie source
Signed-off-by: Frédéric Leroy <fredo at starox.org>
---
board/LaCie/common/common.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/board/LaCie/common/common.c b/board/LaCie/common/common.c
index a62bf9f..d828685 100644
--- a/board/LaCie/common/common.c
+++ b/board/LaCie/common/common.c
@@ -52,10 +52,18 @@ void mv_phy_88e1318_init(const char *name, u16 phyaddr)
/*
* Set control mode 4 for LED[0].
*/
+ #ifndef CONFIG_CLOUDBOX
miiphy_write(name, phyaddr, MII_MARVELL_PHY_PAGE, 3);
miiphy_read(name, phyaddr, 16, ®);
reg |= 0xf;
miiphy_write(name, phyaddr, 16, reg);
+ #else
+ miiphy_write(name, phyaddr, MII_MARVELL_PHY_PAGE, 3);
+ miiphy_read(name, phyaddr, 17, ®);
+ reg &= ~0x3f;
+ reg |= 0x15;
+ miiphy_write(name, phyaddr, 17, reg);
+ #endif
/*
* Enable RGMII delay on Tx and Rx for CPU port
--
1.8.1.2
More information about the U-Boot
mailing list