xilinx: cmd: Add basic fru format generator
authorMichal Simek <michal.simek@xilinx.com>
Mon, 15 Apr 2019 11:54:09 +0000 (13:54 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 27 Oct 2020 07:13:32 +0000 (08:13 +0100)
commit4489e0aa9b5548a2ad1beb2853bbc0db56cf1db5
tree42417e9ef40971ee53320c454af99bd464038247
parentf1b97b5f18a8e03c534cb7dbde22cd23d5d753f7
xilinx: cmd: Add basic fru format generator

Idea is to have something what can be used for board bringup from
generic board perspective.

There is a violation compare to spec that FRU ID is ASCII8 instead of
binary format but this is really for having something to pass boot and
boot to OS which has better generating options.
Also time should be filled properly.

For example:
fru board_gen 1000 XILINX versal-x-prc-01-revA serialX partX

There is also support for revision field which is Xilinx specific field.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/common/fru.c
board/xilinx/common/fru.h
board/xilinx/common/fru_ops.c