Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Haiying Wang | 34c6878 | 2006-07-12 10:48:05 -0400 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2006 Freescale Semiconductor |
| 4 | * York Sun (yorksun@freescale.com) |
Haiying Wang | 34c6878 | 2006-07-12 10:48:05 -0400 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <command.h> |
| 9 | |
Wolfgang Denk | 6262d021 | 2010-06-28 22:00:46 +0200 | [diff] [blame] | 10 | extern int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); |
Haiying Wang | 34c6878 | 2006-07-12 10:48:05 -0400 | [diff] [blame] | 11 | |
| 12 | U_BOOT_CMD( |
| 13 | mac, 3, 1, do_mac, |
Peter Tyser | dfb72b8 | 2009-01-27 18:03:12 -0600 | [diff] [blame] | 14 | "display and program the system ID and MAC addresses in EEPROM", |
Prabhakar Kushwaha | 90f1a45 | 2017-11-09 15:59:21 +0530 | [diff] [blame] | 15 | "[read|save|id|num|errata|date|ports|port_number]\n" |
Michael Jones | 2d19ffb | 2011-07-14 22:09:30 +0000 | [diff] [blame] | 16 | "mac read\n" |
Prabhakar Kushwaha | 90f1a45 | 2017-11-09 15:59:21 +0530 | [diff] [blame] | 17 | " - read EEPROM content into memory data structure\n" |
Haiying Wang | 34c6878 | 2006-07-12 10:48:05 -0400 | [diff] [blame] | 18 | "mac save\n" |
Prabhakar Kushwaha | 90f1a45 | 2017-11-09 15:59:21 +0530 | [diff] [blame] | 19 | " - save memory data structure to the EEPROM\n" |
Haiying Wang | 34c6878 | 2006-07-12 10:48:05 -0400 | [diff] [blame] | 20 | "mac id\n" |
Prabhakar Kushwaha | 90f1a45 | 2017-11-09 15:59:21 +0530 | [diff] [blame] | 21 | " - program system id per hard coded value\n" |
| 22 | "mac num string\n" |
| 23 | " - program system serial number to value string\n" |
| 24 | "mac errata string\n" |
| 25 | " - program errata data to value string\n" |
| 26 | "mac date YYMMDDhhmmss\n" |
| 27 | " - program date to string value YYMMDDhhmmss\n" |
| 28 | "mac ports N\n" |
| 29 | " - program the number of network ports to integer N\n" |
| 30 | "mac X string\n" |
| 31 | " - program MAC addr for port X [X=0,1..] to colon separated string" |
Haiying Wang | 34c6878 | 2006-07-12 10:48:05 -0400 | [diff] [blame] | 32 | ); |