2006-07-12 22:48:05 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2006 Freescale Semiconductor
|
|
|
|
* York Sun (yorksun@freescale.com)
|
|
|
|
*
|
2013-07-08 15:37:19 +08:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2006-07-12 22:48:05 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <command.h>
|
|
|
|
|
2010-06-29 04:00:46 +08:00
|
|
|
extern int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
|
2006-07-12 22:48:05 +08:00
|
|
|
|
|
|
|
U_BOOT_CMD(
|
|
|
|
mac, 3, 1, do_mac,
|
2009-01-28 08:03:12 +08:00
|
|
|
"display and program the system ID and MAC addresses in EEPROM",
|
2006-07-12 22:48:05 +08:00
|
|
|
"[read|save|id|num|errata|date|ports|0|1|2|3|4|5|6|7]\n"
|
2011-07-15 06:09:30 +08:00
|
|
|
"mac read\n"
|
2011-07-15 06:09:31 +08:00
|
|
|
" - read EEPROM content into memory\n"
|
2006-07-12 22:48:05 +08:00
|
|
|
"mac save\n"
|
|
|
|
" - save to the EEPROM\n"
|
|
|
|
"mac id\n"
|
|
|
|
" - program system id\n"
|
|
|
|
"mac num\n"
|
|
|
|
" - program system serial number\n"
|
|
|
|
"mac errata\n"
|
|
|
|
" - program errata data\n"
|
|
|
|
"mac date\n"
|
2008-01-17 06:12:12 +08:00
|
|
|
" - program date\n"
|
2006-07-12 22:48:05 +08:00
|
|
|
"mac ports\n"
|
|
|
|
" - program the number of ports\n"
|
2009-05-24 23:06:54 +08:00
|
|
|
"mac X\n"
|
|
|
|
" - program the MAC address for port X [X=0...7]"
|
2006-07-12 22:48:05 +08:00
|
|
|
);
|