From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Sun, 20 Jun 2010 22:56:17 -0700 Subject: [U-Boot] [PATCH] net: Add option to disable fibre on M88E1111 PHY for PPC4xx In-Reply-To: <1276162095-14035-1-git-send-email-sr@denx.de> References: <1276162095-14035-1-git-send-email-sr@denx.de> Message-ID: <4C1EFF01.6060309@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stefan, On 6/10/2010 2:28 AM, Stefan Roese wrote: > By defining CONFIG_M88E1111_DISABLE_FIBRE boards can configure the > M88E1111 PYH to disable fibre. This is needed for an upcoming PPC460GT > based board, which has fibre/copper auto-selection enabled by default. > This doesn't seem to work. So we disable fibre in the PHY register. > > I don't mean to be pedantic, but unless this is a Fibre Channel link (and it isn't), the appropriate spelling is 'FIBER'. I say this reluctantly, having been raised using British/European spelling... > Signed-off-by: Stefan Roese > Cc: Ben Warren > --- > drivers/net/4xx_enet.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/drivers/net/4xx_enet.c b/drivers/net/4xx_enet.c > index 2fac641..2958903 100644 > --- a/drivers/net/4xx_enet.c > +++ b/drivers/net/4xx_enet.c > @@ -1095,6 +1095,11 @@ static int ppc_4xx_eth_init (struct eth_device *dev, bd_t * bis) > miiphy_write (dev->name, reg, 0x18, 0x4101); > miiphy_write (dev->name, reg, 0x09, 0x0e00); > miiphy_write (dev->name, reg, 0x04, 0x01e1); > +#if defined(CONFIG_M88E1111_DISABLE_FIBRE) > + miiphy_read(dev->name, reg, 0x1b,®_short); > + reg_short |= 0x8000; > + miiphy_write(dev->name, reg, 0x1b, reg_short); > +#endif > #endif > #if defined(CONFIG_M88E1112_PHY) > if (bis->bi_phymode[devnum] == BI_PHYMODE_SGMII) { > regards, Ben