]> git.dujemihanovic.xyz Git - u-boot.git/commit
fru: ops: Add support to read mac addresses from multirecord
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Wed, 23 Feb 2022 14:00:59 +0000 (15:00 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 7 Mar 2022 07:48:22 +0000 (08:48 +0100)
commit7a036b674fc808a71b8069250ac7331d4ceb29a0
tree204f41eec5290bcdca3bf59170dd7ff0d9d7e3bc
parentff8ee707fb0b5aab49832dd124a3c8cc9b3e5d41
fru: ops: Add support to read mac addresses from multirecord

Add support to read MAC addresses from mac address multirecord.
Check if multi record is found, then jump to mac address multirecord by
comparing the record type field. If it matches mac address
multirecord(0xD2), then copy mac addresses.

Copy these read MAC address in xilinx_read_eeprom_fru so that they are
updated to eth*addr in board_late_init_xilinx().

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/18f31bc528820934854ea5fd9dc581778fc1e40c.1645624855.git.michal.simek@xilinx.com
board/xilinx/common/board.c
board/xilinx/common/fru.h
board/xilinx/common/fru_ops.c