blob: a39e1168a57915227f2931f0ab9bcfd92897a821 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Haiying Wangbea3f282006-07-12 10:48:05 -04002/*
3 * Copyright 2006 Freescale Semiconductor
4 * York Sun (yorksun@freescale.com)
Haiying Wangbea3f282006-07-12 10:48:05 -04005 */
6
7#include <common.h>
8#include <command.h>
9
Simon Glass09140112020-05-10 11:40:03 -060010extern int do_mac(struct cmd_tbl *cmdtp, int flag, int argc,
11 char *const argv[]);
Haiying Wangbea3f282006-07-12 10:48:05 -040012
13U_BOOT_CMD(
14 mac, 3, 1, do_mac,
Peter Tyser2fb26042009-01-27 18:03:12 -060015 "display and program the system ID and MAC addresses in EEPROM",
Prabhakar Kushwaha3e27e162017-11-09 15:59:21 +053016 "[read|save|id|num|errata|date|ports|port_number]\n"
Michael Jones6a33a3c2011-07-14 22:09:30 +000017 "mac read\n"
Prabhakar Kushwaha3e27e162017-11-09 15:59:21 +053018 " - read EEPROM content into memory data structure\n"
Haiying Wangbea3f282006-07-12 10:48:05 -040019 "mac save\n"
Prabhakar Kushwaha3e27e162017-11-09 15:59:21 +053020 " - save memory data structure to the EEPROM\n"
Haiying Wangbea3f282006-07-12 10:48:05 -040021 "mac id\n"
Prabhakar Kushwaha3e27e162017-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 Wangbea3f282006-07-12 10:48:05 -040033);