Haiying Wang | 34c6878 | 2006-07-12 10:48:05 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2006 Freescale Semiconductor |
| 3 | * York Sun (yorksun@freescale.com) |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Haiying Wang | 34c6878 | 2006-07-12 10:48:05 -0400 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <common.h> |
| 9 | #include <command.h> |
| 10 | |
Wolfgang Denk | 6262d021 | 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 | 34c6878 | 2006-07-12 10:48:05 -0400 | [diff] [blame] | 12 | |
| 13 | U_BOOT_CMD( |
| 14 | mac, 3, 1, do_mac, |
Peter Tyser | dfb72b8 | 2009-01-27 18:03:12 -0600 | [diff] [blame] | 15 | "display and program the system ID and MAC addresses in EEPROM", |
Haiying Wang | 34c6878 | 2006-07-12 10:48:05 -0400 | [diff] [blame] | 16 | "[read|save|id|num|errata|date|ports|0|1|2|3|4|5|6|7]\n" |
Michael Jones | 2d19ffb | 2011-07-14 22:09:30 +0000 | [diff] [blame] | 17 | "mac read\n" |
Michael Jones | 5f4e82d | 2011-07-14 22:09:31 +0000 | [diff] [blame] | 18 | " - read EEPROM content into memory\n" |
Haiying Wang | 34c6878 | 2006-07-12 10:48:05 -0400 | [diff] [blame] | 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" |
Haiying Wang | 34cf959 | 2008-01-16 17:12:12 -0500 | [diff] [blame] | 28 | " - program date\n" |
Haiying Wang | 34c6878 | 2006-07-12 10:48:05 -0400 | [diff] [blame] | 29 | "mac ports\n" |
| 30 | " - program the number of ports\n" |
Wolfgang Denk | c54781c | 2009-05-24 17:06:54 +0200 | [diff] [blame] | 31 | "mac X\n" |
| 32 | " - program the MAC address for port X [X=0...7]" |
Haiying Wang | 34c6878 | 2006-07-12 10:48:05 -0400 | [diff] [blame] | 33 | ); |