projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AX88180: switch to common mii.h header
[oweals/u-boot.git]
/
drivers
/
net
/
3c589.c
diff --git
a/drivers/net/3c589.c
b/drivers/net/3c589.c
index 0cf8dff689fe066b48bfad1fe2df276db682e411..f2c7d326b40dd7d309f0d01d497312d476dc46c9 100644
(file)
--- a/
drivers/net/3c589.c
+++ b/
drivers/net/3c589.c
@@
-259,10
+259,13
@@
static void el_reset(bd_t *bd)
/* set mac addr */
{
/* set mac addr */
{
- u
nsigned char *mac_addr = bd->bi_enetaddr
;
+ u
char mac_addr[6]
;
int i;
int i;
- el_get_mac_addr( mac_addr );
+ if (!eth_getenv_enetaddr("ethaddr", mac_addr)) {
+ el_get_mac_addr(mac_addr);
+ eth_setenv_enetaddr("ethaddr", mac_addr);
+ }
GO_WINDOW(2);
VX_BUSY_WAIT;
GO_WINDOW(2);
VX_BUSY_WAIT;