Blame view

cmd/mac.c 997 Bytes
bea3f28d2   Haiying Wang   Add support for r...
1
2
3
4
  /*
   * Copyright 2006 Freescale Semiconductor
   * York Sun (yorksun@freescale.com)
   *
1a4596601   Wolfgang Denk   Add GPL-2.0+ SPDX...
5
   * SPDX-License-Identifier:	GPL-2.0+
bea3f28d2   Haiying Wang   Add support for r...
6
7
8
9
   */
  
  #include <common.h>
  #include <command.h>
54841ab50   Wolfgang Denk   Make sure that ar...
10
  extern int do_mac(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
bea3f28d2   Haiying Wang   Add support for r...
11
12
13
  
  U_BOOT_CMD(
  	mac, 3, 1,  do_mac,
2fb2604d5   Peter Tyser   Command usage cle...
14
  	"display and program the system ID and MAC addresses in EEPROM",
3e27e1678   Prabhakar Kushwaha   cmd: mac: Update ...
15
16
  	"[read|save|id|num|errata|date|ports|port_number]
  "
6a33a3c2c   Michael Jones   cmd_mac: cleanup ...
17
18
  	"mac read
  "
3e27e1678   Prabhakar Kushwaha   cmd: mac: Update ...
19
20
  	"    - read EEPROM content into memory data structure
  "
bea3f28d2   Haiying Wang   Add support for r...
21
22
  	"mac save
  "
3e27e1678   Prabhakar Kushwaha   cmd: mac: Update ...
23
24
  	"    - save memory data structure to the EEPROM
  "
bea3f28d2   Haiying Wang   Add support for r...
25
26
  	"mac id
  "
3e27e1678   Prabhakar Kushwaha   cmd: mac: Update ...
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  	"    - program system id per hard coded value
  "
  	"mac num string
  "
  	"    - program system serial number to value string
  "
  	"mac errata string
  "
  	"    - program errata data to value string
  "
  	"mac date YYMMDDhhmmss
  "
  	"    - program date to string value YYMMDDhhmmss
  "
  	"mac ports N
  "
  	"    - program the number of network ports to integer N
  "
  	"mac X string
  "
  	"    - program MAC addr for port X [X=0,1..] to colon separated string"
bea3f28d2   Haiying Wang   Add support for r...
48
  );