
On 9/30/23 14:01, Heinrich Schuchardt wrote:
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.
I have tested the series on the Unmatched and VisionFive 2 boards but lack access to NXP hardware. So these patches need to be tested by one of the NXP maintainers.
Best regards
Heinrich
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