Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
uboot-imx
Commits
f89920c3
Commit
f89920c3
authored
Aug 12, 2005
by
Wolfgang Denk
Browse files
Preserve PHY_BMCR during a soft reset.
Patch by Carl Riechers, 24 Jun 2005
parent
e5445288
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
f89920c3
...
...
@@ -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
...
...
common/miiphyutil.c
View file @
f89920c3
...
...
@@ -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
,
&
reg
)
!=
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment