[PATCH 0/6] cmd mac: separate implementations

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sat Sep 30 14:01:41 CEST 2023


There are three implementations of the 'mac' command:

* Freescale (NXP)
* SiFive Unmatched
* StarFive VisionFive 2

They all use different sets of sub-commands and hence should display
a different long text help.

This series moves the command definition to the three implementations.

The following fixes are added for the StarFive implementation:

* Provide a hexdump if the data format is unknown.
* Provide a raw sub-command to force a hexdump.

Heinrich Schuchardt (6):
  cmd: move mac command
  freescale: fix long help handling in mac command
  eeprom: SiFive Unmatched: re-implement mac command
  eeprom: starfive: re-implement mac command
  eeprom: starfive: raw dump if unsupported data version
  eeprom: starfive: add 'mac raw' command

 board/freescale/common/sys_eeprom.c           | 30 +++++++-
 .../unmatched/hifive-platform-i2c-eeprom.c    | 30 +++++++-
 .../visionfive2/visionfive2-i2c-eeprom.c      | 68 ++++++++++++-------
 cmd/Makefile                                  |  1 -
 cmd/mac.c                                     | 33 ---------
 5 files changed, 98 insertions(+), 64 deletions(-)
 delete mode 100644 cmd/mac.c

-- 
2.40.1



More information about the U-Boot mailing list