mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
Preserve PHY_BMCR during a soft reset.
Patch by Carl Riechers, 24 Jun 2005
This commit is contained in:
parent
e544528831
commit
f89920c3e4
@ -2,6 +2,9 @@
|
||||
Changes for U-Boot 1.1.3:
|
||||
======================================================================
|
||||
|
||||
* Preserve PHY_BMCR during a soft reset.
|
||||
Patch by Carl Riechers, 24 Jun 2005
|
||||
|
||||
* VoiceBlue update: eeprom tool can also store firmware version now.
|
||||
eeprom.bin is runable by jumping at load address.
|
||||
Patch by Ladislav Michl, 23 May 2005
|
||||
|
@ -93,7 +93,13 @@ int miiphy_reset (unsigned char addr)
|
||||
unsigned short reg;
|
||||
int loop_cnt;
|
||||
|
||||
if (miiphy_write (addr, PHY_BMCR, 0x8000) != 0) {
|
||||
if (miiphy_read (addr, PHY_BMCR, ®) != 0) {
|
||||
#ifdef DEBUG
|
||||
printf ("PHY status read failed\n");
|
||||
#endif
|
||||
return (-1);
|
||||
}
|
||||
if (miiphy_write (addr, PHY_BMCR, reg | 0x8000) != 0) {
|
||||
#ifdef DEBUG
|
||||
puts ("PHY reset failed\n");
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user