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