From: Padmarao Begari Date: Wed, 9 Apr 2025 16:26:39 +0000 (+0530) Subject: board: amd: Read an eeprom after relocation X-Git-Tag: v2025.07-rc1~52^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=672d081196b92745799149714d4cd7f58d9fd356;p=pandora-u-boot.git 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 Link: https://lore.kernel.org/r/20250409162639.588487-3-padmarao.begari@amd.com Signed-off-by: Michal Simek --- 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; }