]> git.ipfire.org Git - people/ms/u-boot.git/blame - cmd/mac.c
mmc: omap_hsmmc: Add support to set IODELAY values
[people/ms/u-boot.git] / cmd / mac.c
CommitLineData
bea3f28d
HW
1/*
2 * Copyright 2006 Freescale Semiconductor
3 * York Sun (yorksun@freescale.com)
4 *
1a459660 5 * SPDX-License-Identifier: GPL-2.0+
bea3f28d
HW
6 */
7
8#include <common.h>
9#include <command.h>
10
54841ab5 11extern int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
bea3f28d
HW
12
13U_BOOT_CMD(
14 mac, 3, 1, do_mac,
2fb2604d 15 "display and program the system ID and MAC addresses in EEPROM",
3e27e167 16 "[read|save|id|num|errata|date|ports|port_number]\n"
6a33a3c2 17 "mac read\n"
3e27e167 18 " - read EEPROM content into memory data structure\n"
bea3f28d 19 "mac save\n"
3e27e167 20 " - save memory data structure to the EEPROM\n"
bea3f28d 21 "mac id\n"
3e27e167
PK
22 " - 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"
bea3f28d 33);