From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Guinot Date: Tue, 25 Jun 2013 23:08:05 +0200 Subject: [U-Boot] [PATCH 2/2] LaCie/common: Fix cloudbox ethernet leds In-Reply-To: <1372178945-11528-3-git-send-email-fredo@starox.org> References: <1372178945-11528-1-git-send-email-fredo@starox.org> <1372178945-11528-3-git-send-email-fredo@starox.org> Message-ID: <20130625210805.GF7626@kw.sim.vm.gnt> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jun 25, 2013 at 06:49:05PM +0200, Frederic Leroy wrote: > From: Fr?d?ric Leroy > > 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 > --- > 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 This doesn't look very common but I can't figure out a more elegant way. Acked-by: Simon Guinot -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: