summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPadmarao Begari <[email protected]>2025-04-09 21:56:39 +0530
committerMichal Simek <[email protected]>2025-04-16 15:39:48 +0200
commit672d081196b92745799149714d4cd7f58d9fd356 (patch)
tree0aa0f5922a4c1803a340d3901518f16c15dc34a7
parent799eaf090cf92a42a0d4650c08e3943a36595196 (diff)
board: amd: Read an eeprom after relocation
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michal Simek <[email protected]>
-rw-r--r--board/amd/versal2/board.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/amd/versal2/board.c b/board/amd/versal2/board.c
index 24689d82273..72967e69a84 100644
--- a/board/amd/versal2/board.c
+++ b/board/amd/versal2/board.c
@@ -45,6 +45,9 @@ int board_init(void)
fpga_add(fpga_xilinx, &versalpl);
#endif
+ if (CONFIG_IS_ENABLED(DM_I2C) && CONFIG_IS_ENABLED(I2C_EEPROM))
+ xilinx_read_eeprom();
+
return 0;
}