projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b79f2c
)
bugfix: Guruplug: Use standard miiphy
author
Mahavir Jain
<[mjain@marvell.com]>
Fri, 21 May 2010 09:07:48 +0000
(14:37 +0530)
committer
Wolfgang Denk
<wd@denx.de>
Fri, 21 May 2010 20:30:14 +0000
(22:30 +0200)
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>
board/Marvell/guruplug/guruplug.c
patch
|
blob
|
history
diff --git
a/board/Marvell/guruplug/guruplug.c
b/board/Marvell/guruplug/guruplug.c
index
ba47ca1
..
c028a53
100644
(file)
--- 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);
}