diff options
author | Richard Retanubun <RichardRetanubun@RuggedCom.com> | 2009-06-17 16:00:41 -0400 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2010-05-03 14:52:48 -0700 |
commit | 23c34af48ff0dbff3bbaa8e94df3bf40350a709f (patch) | |
tree | fa46b9363c78c501e8309cba893691612cb029f6 /drivers/qe/uec.c | |
parent | 9739946cc5b616c026d433bd07d193cf452ddea0 (diff) | |
download | u-boot-23c34af48ff0dbff3bbaa8e94df3bf40350a709f.tar.gz u-boot-23c34af48ff0dbff3bbaa8e94df3bf40350a709f.tar.xz u-boot-23c34af48ff0dbff3bbaa8e94df3bf40350a709f.zip |
83xx: UEC: Added support for bitBang MII driver access to PHYs
This patch enabled support for having PHYs on bitBang MII and uec MII
operating at the same time. Modeled after the MPC8360ADS implementation.
Added the ability to specify which ethernet interfaces have bitbang SMI
on the board header file.
Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers/qe/uec.c')
-rw-r--r-- | drivers/qe/uec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/qe/uec.c b/drivers/qe/uec.c index 27dc5009c8..ccbf27d0be 100644 --- a/drivers/qe/uec.c +++ b/drivers/qe/uec.c @@ -595,8 +595,7 @@ static void phy_change(struct eth_device *dev) adjust_link(dev); } -#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) \ - && !defined(BITBANGMII) +#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) /* * Find a device index from the devlist by name @@ -1388,8 +1387,7 @@ int uec_initialize(bd_t *bis, uec_info_t *uec_info) return err; } -#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) \ - && !defined(BITBANGMII) +#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) miiphy_register(dev->name, uec_miiphy_read, uec_miiphy_write); #endif |