diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-09-30 14:01:42 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-10-16 10:22:11 -0400 |
commit | 8780cd8211066d70b5a496dfe7320b2a09271c62 (patch) | |
tree | 2f0c065d3b8935a21f51ae559e05fb1ed1213746 /board/freescale | |
parent | 3c3f1626919cd93cbe6c56e3849937de5be18dbb (diff) | |
download | u-boot-8780cd8211066d70b5a496dfe7320b2a09271c62.zip u-boot-8780cd8211066d70b5a496dfe7320b2a09271c62.tar.gz u-boot-8780cd8211066d70b5a496dfe7320b2a09271c62.tar.bz2 |
cmd: move mac command
Board specific implementations of the 'mac' command differ concerning the
supported sub-commands.
Move the Freescale specific mac command definition to the board code.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/common/sys_eeprom.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c index 431f8ca..d4a00fe 100644 --- a/board/freescale/common/sys_eeprom.c +++ b/board/freescale/common/sys_eeprom.c @@ -623,3 +623,25 @@ unsigned int get_cpu_board_revision(void) return MPC85XX_CPU_BOARD_REV(be.major, be.minor); } #endif + +U_BOOT_CMD( + mac, 3, 1, do_mac, + "display and program the system ID and MAC addresses in EEPROM", + "[read|save|id|num|errata|date|ports|port_number]\n" + "mac read\n" + " - read EEPROM content into memory data structure\n" + "mac save\n" + " - save memory data structure to the EEPROM\n" + "mac id\n" + " - program system id per hard coded value\n" + "mac num string\n" + " - program system serial number to value string\n" + "mac errata string\n" + " - program errata data to value string\n" + "mac date YYMMDDhhmmss\n" + " - program date to string value YYMMDDhhmmss\n" + "mac ports N\n" + " - program the number of network ports to integer N\n" + "mac X string\n" + " - program MAC addr for port X [X=0,1..] to colon separated string" +); |