diff options
author | Dasnavis Sabiya <sabiya.d@ti.com> | 2023-01-24 20:22:14 +0530 |
---|---|---|
committer | Udit Kumar <u-kumar1@ti.com> | 2023-02-14 10:49:46 +0530 |
commit | b16176211717f131bd672173d26ca25b540c50ce (patch) | |
tree | fe62194d2d8c2bdfc0bcab0723b3640979dfd35c | |
parent | 03acc3179c967ee094ba8e766dabfb3f39f91c77 (diff) |
board: ti: j784s4: Update EEPROM address for AM69 SK
J784S4 EVM has EEPROM populated at 0x50. AM69 SK has EEPROM populated at
next address 0x51. So start looking for TI specific EEPROM at 0x50, if not
found look for EEPROM at 0x51.
Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
-rw-r--r-- | board/ti/j784s4/evm.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/board/ti/j784s4/evm.c b/board/ti/j784s4/evm.c index f691ea4ebb..8eafcfdbc2 100644 --- a/board/ti/j784s4/evm.c +++ b/board/ti/j784s4/evm.c @@ -107,9 +107,15 @@ int do_board_detect(void) ret = ti_i2c_eeprom_am6_get_base(CONFIG_EEPROM_BUS_ADDRESS, CONFIG_EEPROM_CHIP_ADDRESS); - if (ret) - pr_err("Reading on-board EEPROM at 0x%02x failed %d\n", - CONFIG_EEPROM_CHIP_ADDRESS, ret); + if (ret) { + printf("EEPROM not available at 0x%02x, trying to read at 0x%02x\n", + CONFIG_EEPROM_CHIP_ADDRESS, CONFIG_EEPROM_CHIP_ADDRESS + 1); + ret = ti_i2c_eeprom_am6_get_base(CONFIG_EEPROM_BUS_ADDRESS, + CONFIG_EEPROM_CHIP_ADDRESS + 1); + if (ret) + pr_err("Reading on-board EEPROM at 0x%02x failed %d\n", + CONFIG_EEPROM_CHIP_ADDRESS + 1, ret); + } return ret; } |