]> git.ipfire.org Git - thirdparty/u-boot.git/blame - cmd/mac.c
Merge tag 'video-for-2019.07-rc1' of git://git.denx.de/u-boot-video
[thirdparty/u-boot.git] / cmd / mac.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
bea3f28d
HW
2/*
3 * Copyright 2006 Freescale Semiconductor
4 * York Sun (yorksun@freescale.com)
bea3f28d
HW
5 */
6
7#include <common.h>
8#include <command.h>
9
54841ab5 10extern int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
bea3f28d
HW
11
12U_BOOT_CMD(
13 mac, 3, 1, do_mac,
2fb2604d 14 "display and program the system ID and MAC addresses in EEPROM",
3e27e167 15 "[read|save|id|num|errata|date|ports|port_number]\n"
6a33a3c2 16 "mac read\n"
3e27e167 17 " - read EEPROM content into memory data structure\n"
bea3f28d 18 "mac save\n"
3e27e167 19 " - save memory data structure to the EEPROM\n"
bea3f28d 20 "mac id\n"
3e27e167
PK
21 " - program system id per hard coded value\n"
22 "mac num string\n"
23 " - program system serial number to value string\n"
24 "mac errata string\n"
25 " - program errata data to value string\n"
26 "mac date YYMMDDhhmmss\n"
27 " - program date to string value YYMMDDhhmmss\n"
28 "mac ports N\n"
29 " - program the number of network ports to integer N\n"
30 "mac X string\n"
31 " - program MAC addr for port X [X=0,1..] to colon separated string"
bea3f28d 32);