[PATCH 2/2] board: amd: Read an eeprom after relocation

Padmarao Begari padmarao.begari at amd.com
Wed Apr 9 18:26:39 CEST 2025


Read an eeprom after relocation which also shows information from
eeprom wired via nvmem aliases.

When DTB reselection is enabled eeprom is read before relocation
too but information is not showed. The issue about two i2c reads
in this case will be address separately.

Signed-off-by: Padmarao Begari <padmarao.begari at amd.com>
---
 board/amd/versal2/board.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/board/amd/versal2/board.c b/board/amd/versal2/board.c
index 5651d516a9e..5b995aaf9b2 100644
--- a/board/amd/versal2/board.c
+++ b/board/amd/versal2/board.c
@@ -32,6 +32,9 @@ int board_init(void)
 {
 	printf("EL Level:\tEL%d\n", current_el());
 
+	if (CONFIG_IS_ENABLED(DM_I2C) && CONFIG_IS_ENABLED(I2C_EEPROM))
+		xilinx_read_eeprom();
+
 	return 0;
 }
 
-- 
2.44.1



More information about the U-Boot mailing list