]>
Commit | Line | Data |
---|---|---|
bea3f28d HW |
1 | /* |
2 | * Copyright 2006 Freescale Semiconductor | |
3 | * York Sun ([email protected]) | |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
bea3f28d HW |
6 | */ |
7 | ||
8 | #include <common.h> | |
9 | #include <command.h> | |
10 | ||
54841ab5 | 11 | extern int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); |
bea3f28d HW |
12 | |
13 | U_BOOT_CMD( | |
14 | mac, 3, 1, do_mac, | |
2fb2604d | 15 | "display and program the system ID and MAC addresses in EEPROM", |
bea3f28d | 16 | "[read|save|id|num|errata|date|ports|0|1|2|3|4|5|6|7]\n" |
6a33a3c2 | 17 | "mac read\n" |
191c0b87 | 18 | " - read EEPROM content into memory\n" |
bea3f28d HW |
19 | "mac save\n" |
20 | " - save to the EEPROM\n" | |
21 | "mac id\n" | |
22 | " - program system id\n" | |
23 | "mac num\n" | |
24 | " - program system serial number\n" | |
25 | "mac errata\n" | |
26 | " - program errata data\n" | |
27 | "mac date\n" | |
d59feffb | 28 | " - program date\n" |
bea3f28d HW |
29 | "mac ports\n" |
30 | " - program the number of ports\n" | |
a89c33db WD |
31 | "mac X\n" |
32 | " - program the MAC address for port X [X=0...7]" | |
bea3f28d | 33 | ); |