blob: 52d3ba0f29a27660f5fd3b08b1dd93cd1ae278ba [file] [log] [blame]
Haiying Wang34c68782006-07-12 10:48:05 -04001/*
2 * Copyright 2006 Freescale Semiconductor
3 * York Sun (yorksun@freescale.com)
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Haiying Wang34c68782006-07-12 10:48:05 -04006 */
7
8#include <common.h>
9#include <command.h>
10
Wolfgang Denk6262d0212010-06-28 22:00:46 +020011extern int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
Haiying Wang34c68782006-07-12 10:48:05 -040012
13U_BOOT_CMD(
14 mac, 3, 1, do_mac,
Peter Tyserdfb72b82009-01-27 18:03:12 -060015 "display and program the system ID and MAC addresses in EEPROM",
Haiying Wang34c68782006-07-12 10:48:05 -040016 "[read|save|id|num|errata|date|ports|0|1|2|3|4|5|6|7]\n"
Michael Jones2d19ffb2011-07-14 22:09:30 +000017 "mac read\n"
Michael Jones5f4e82d2011-07-14 22:09:31 +000018 " - read EEPROM content into memory\n"
Haiying Wang34c68782006-07-12 10:48:05 -040019 "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 Wang34cf9592008-01-16 17:12:12 -050028 " - program date\n"
Haiying Wang34c68782006-07-12 10:48:05 -040029 "mac ports\n"
30 " - program the number of ports\n"
Wolfgang Denkc54781c2009-05-24 17:06:54 +020031 "mac X\n"
32 " - program the MAC address for port X [X=0...7]"
Haiying Wang34c68782006-07-12 10:48:05 -040033);