Blame view

common/cmd_mac.c 806 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",
bea3f28d2   Haiying Wang   Add support for r...
15
16
  	"[read|save|id|num|errata|date|ports|0|1|2|3|4|5|6|7]
  "
6a33a3c2c   Michael Jones   cmd_mac: cleanup ...
17
18
  	"mac read
  "
191c0b87b   Michael Jones   cmd_mac: fix help...
19
20
  	"    - read EEPROM content into memory
  "
bea3f28d2   Haiying Wang   Add support for r...
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
  	"mac save
  "
  	"    - save to the EEPROM
  "
  	"mac id
  "
  	"    - program system id
  "
  	"mac num
  "
  	"    - program system serial number
  "
  	"mac errata
  "
  	"    - program errata data
  "
  	"mac date
  "
d59feffb4   Haiying Wang   FSL: Fix common E...
39
40
  	"    - program date
  "
bea3f28d2   Haiying Wang   Add support for r...
41
42
43
44
  	"mac ports
  "
  	"    - program the number of ports
  "
a89c33db9   Wolfgang Denk   General help mess...
45
46
47
  	"mac X
  "
  	"    - program the MAC address for port X [X=0...7]"
bea3f28d2   Haiying Wang   Add support for r...
48
  );