[PATCH] xilinx: zynq: Enable early eeprom decoding
Michal Simek
michal.simek at amd.com
Tue Sep 27 09:55:46 CEST 2022
Xilinx Zynq evaluation boards have factory program content in eeprom.
Enable reading and decoding eeprom content to get information about board
name, revision and especially getting ethernet mac address.
Signed-off-by: Michal Simek <michal.simek at amd.com>
---
board/xilinx/zynq/board.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
index c96433be693b..17ee541bd840 100644
--- a/board/xilinx/zynq/board.c
+++ b/board/xilinx/zynq/board.c
@@ -37,6 +37,9 @@ int board_init(void)
if (IS_ENABLED(CONFIG_SPL_BUILD))
printf("Silicon version:\t%d\n", zynq_get_silicon_version());
+ if (CONFIG_IS_ENABLED(DM_I2C) && CONFIG_IS_ENABLED(I2C_EEPROM))
+ xilinx_read_eeprom();
+
return 0;
}
--
2.36.1
More information about the U-Boot
mailing list