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