[RFC PATCH 0/2] cmd/fru: move FRU handling support to common region

Jae Hyun Yoo quic_jaehyoo at quicinc.com
Wed Jul 27 01:50:03 CEST 2022


Hello,

The FRU handling was added as a Xilinx board dependent support but it
would be useful for other boards too, so this commit moves the FRU
handling support to the common region to be enabled by CONFIG_CMD_FRU.
Since the Multirecord parsing logic should be implemented on each
board specifically, it defines 'fru_parse_multirec' as a weak function
so that the function can be replaced with the board specific
implementation.

Also, this series adds 'Product Info' of FRU parsing support.

Please review!

Thanks,
Jae

Graeme Gregory (1):
  cmd/fru: cmd/fru: move FRU handling support to common region

Jae Hyun Yoo (1):
  cmd/fru: add product info area parsing support

 board/xilinx/Kconfig                      |   8 -
 board/xilinx/common/Makefile              |   3 -
 board/xilinx/common/board.c               |  63 ++++++--
 cmd/Kconfig                               |   8 +
 cmd/Makefile                              |   1 +
 {board/xilinx/common => cmd}/fru.c        |   3 +-
 common/Makefile                           |   2 +
 {board/xilinx/common => common}/fru_ops.c | 171 +++++++++++++++++++---
 {board/xilinx/common => include}/fru.h    |  37 +++--
 9 files changed, 237 insertions(+), 59 deletions(-)
 rename {board/xilinx/common => cmd}/fru.c (99%)
 rename {board/xilinx/common => common}/fru_ops.c (73%)
 rename {board/xilinx/common => include}/fru.h (76%)

-- 
2.25.1



More information about the U-Boot mailing list