blob: 4d0dd2b9635d424cf45bbddce137fb8a7efc33c1 [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",
Prabhakar Kushwaha90f1a452017-11-09 15:59:21 +053016 "[read|save|id|num|errata|date|ports|port_number]\n"
Michael Jones2d19ffb2011-07-14 22:09:30 +000017 "mac read\n"
Prabhakar Kushwaha90f1a452017-11-09 15:59:21 +053018 " - read EEPROM content into memory data structure\n"
Haiying Wang34c68782006-07-12 10:48:05 -040019 "mac save\n"
Prabhakar Kushwaha90f1a452017-11-09 15:59:21 +053020 " - save memory data structure to the EEPROM\n"
Haiying Wang34c68782006-07-12 10:48:05 -040021 "mac id\n"
Prabhakar Kushwaha90f1a452017-11-09 15:59:21 +053022 " - 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 Wang34c68782006-07-12 10:48:05 -040033);