mac.c 1002 B

123456789101112131415161718192021222324252627282930313233
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright 2006 Freescale Semiconductor
  4. * York Sun (yorksun@freescale.com)
  5. */
  6. #include <common.h>
  7. #include <command.h>
  8. extern int do_mac(struct cmd_tbl *cmdtp, int flag, int argc,
  9. char *const argv[]);
  10. U_BOOT_CMD(
  11. mac, 3, 1, do_mac,
  12. "display and program the system ID and MAC addresses in EEPROM",
  13. "[read|save|id|num|errata|date|ports|port_number]\n"
  14. "mac read\n"
  15. " - read EEPROM content into memory data structure\n"
  16. "mac save\n"
  17. " - save memory data structure to the EEPROM\n"
  18. "mac id\n"
  19. " - program system id per hard coded value\n"
  20. "mac num string\n"
  21. " - program system serial number to value string\n"
  22. "mac errata string\n"
  23. " - program errata data to value string\n"
  24. "mac date YYMMDDhhmmss\n"
  25. " - program date to string value YYMMDDhhmmss\n"
  26. "mac ports N\n"
  27. " - program the number of network ports to integer N\n"
  28. "mac X string\n"
  29. " - program MAC addr for port X [X=0,1..] to colon separated string"
  30. );