diff options
| author | Rasmus Villemoes <[email protected]> | 2022-05-20 13:19:08 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-06-06 18:01:21 -0400 |
| commit | e5e04eaa2f1cb4dc37a12551018a00a18cab19de (patch) | |
| tree | 40cc7f350c8cf3f335098fe2f169176dfbecd5d8 /include/asm-generic/u-boot.h | |
| parent | ba9aa40bb387385b8ef8b6594661a97ddcb8d04c (diff) | |
common/board_r.c: drop legacy and unused bi_enetaddr
The bi_enetaddr field in struct bd_info is write-only; nothing ever
reads back the value.
Moreover, the value we write is more or less random, and certainly not
something one can rely on: If the board has a writable environment and
the mac address has been stored there, we fetch that value. But if the
board doesn't, this code runs before initr_net() -> eth_initialize(),
and thus before the code in eth-uclass which fetches MAC addresses
from eeprom, fuses or whatnot and populates the (run-time) environment
with those values.
Signed-off-by: Rasmus Villemoes <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'include/asm-generic/u-boot.h')
| -rw-r--r-- | include/asm-generic/u-boot.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/asm-generic/u-boot.h b/include/asm-generic/u-boot.h index 1becc669aee..70303acd558 100644 --- a/include/asm-generic/u-boot.h +++ b/include/asm-generic/u-boot.h @@ -48,7 +48,6 @@ struct bd_info { #endif unsigned long bi_bootflags; /* boot / reboot flag (Unused) */ unsigned long bi_ip_addr; /* IP Address */ - unsigned char bi_enetaddr[6]; /* OLD: see README.enetaddr */ unsigned short bi_ethspeed; /* Ethernet speed in Mbps */ unsigned long bi_intfreq; /* Internal Freq, in MHz */ unsigned long bi_busfreq; /* Bus Freq, in MHz */ |
