diff options
author | Mahavir Jain <[mjain@marvell.com]> | 2010-05-21 13:07:48 +0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-05-22 00:30:14 +0400 |
commit | 3f786bb8542ee85ea898152b40b1f0d98f0801df (patch) | |
tree | 3df5b6fd6766bacf1245219ab4703b8dbb6a8dc2 /board/Marvell/guruplug | |
parent | 8b79f2ce80d62e92d11ca90e472f240305e14f1f (diff) | |
download | u-boot-3f786bb8542ee85ea898152b40b1f0d98f0801df.tar.xz |
bugfix: Guruplug: Use standard miiphy
call to reset PHY chip.
Current PHY Software Reset operation in guruplug does not
poll reset bit in control register to go to 0(auto clearing)
for making sure reset was successful.This patch uses standard
miiphy call miiphy_reset to make sure proper PHY reset operation.
Signed-off-by: Mahavir Jain <mjain@marvell.com>
Diffstat (limited to 'board/Marvell/guruplug')
-rw-r--r-- | board/Marvell/guruplug/guruplug.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/board/Marvell/guruplug/guruplug.c b/board/Marvell/guruplug/guruplug.c index ba47ca179f..c028a53bcb 100644 --- a/board/Marvell/guruplug/guruplug.c +++ b/board/Marvell/guruplug/guruplug.c @@ -146,14 +146,7 @@ void mv_phy_88e1121_init(char *name) miiphy_write(name, devadr, MV88E1121_PGADR_REG, 0); /* reset the phy */ - if (miiphy_read (name, devadr, PHY_BMCR, ®) != 0) { - printf("Err..(%s) PHY status read failed\n", __FUNCTION__); - return; - } - if (miiphy_write (name, devadr, PHY_BMCR, reg | 0x8000) != 0) { - printf("Err..(%s) PHY reset failed\n", __FUNCTION__); - return; - } + miiphy_reset(name, devadr); printf("88E1121 Initialized on %s\n", name); } |