Blame view
cmd/mac.c
994 Bytes
83d290c56 SPDX: Convert all... |
1 |
// SPDX-License-Identifier: GPL-2.0+ |
bea3f28d2 Add support for r... |
2 3 4 |
/* * Copyright 2006 Freescale Semiconductor * York Sun (yorksun@freescale.com) |
bea3f28d2 Add support for r... |
5 6 7 8 |
*/ #include <common.h> #include <command.h> |
54841ab50 Make sure that ar... |
9 |
extern int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); |
bea3f28d2 Add support for r... |
10 11 12 |
U_BOOT_CMD( mac, 3, 1, do_mac, |
2fb2604d5 Command usage cle... |
13 |
"display and program the system ID and MAC addresses in EEPROM", |
3e27e1678 cmd: mac: Update ... |
14 15 |
"[read|save|id|num|errata|date|ports|port_number] " |
6a33a3c2c cmd_mac: cleanup ... |
16 17 |
"mac read " |
3e27e1678 cmd: mac: Update ... |
18 19 |
" - read EEPROM content into memory data structure " |
bea3f28d2 Add support for r... |
20 21 |
"mac save " |
3e27e1678 cmd: mac: Update ... |
22 23 |
" - save memory data structure to the EEPROM " |
bea3f28d2 Add support for r... |
24 25 |
"mac id " |
3e27e1678 cmd: mac: Update ... |
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
" - program system id per hard coded value " "mac num string " " - program system serial number to value string " "mac errata string " " - program errata data to value string " "mac date YYMMDDhhmmss " " - program date to string value YYMMDDhhmmss " "mac ports N " " - program the number of network ports to integer N " "mac X string " " - program MAC addr for port X [X=0,1..] to colon separated string" |
bea3f28d2 Add support for r... |
47 |
); |