diff options
| author | Tom Rini <[email protected]> | 2021-08-17 17:59:39 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-08-30 14:10:05 -0400 |
| commit | d64d1536b878176afdb6e2780ee8f5f8e0d657ea (patch) | |
| tree | 0d2d5c8d2acd0e8970fd0430235b1417f0227601 | |
| parent | b61d18c07de68771fd347cf0ccf3e06ce5ddc298 (diff) | |
keymile: Use CONFIG_SYS_IVM_EEPROM_ADR
As the code reads now, making this code path use
CONFIG_SYS_IVM_EEPROM_ADR rather than CONFIG_SYS_I2C_EEPROM_ADDR seems
to make sense as the rest of the EEPROM infrastructure isn't used on
these platforms.
Cc: Aleksandar Gerasimovski <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Reviewed-by: Aleksandar Gerasimovski <[email protected]>
| -rw-r--r-- | board/keymile/common/ivm.c | 6 | ||||
| -rw-r--r-- | include/configs/kmcent2.h | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c index 14c70b9ad06..ff550f7fe76 100644 --- a/board/keymile/common/ivm.c +++ b/board/keymile/common/ivm.c @@ -346,17 +346,17 @@ int ivm_read_eeprom(unsigned char *buf, int len, int mac_address_offset) struct udevice *eedev = NULL; ret = i2c_get_chip_for_busnum(CONFIG_KM_IVM_BUS, - CONFIG_SYS_I2C_EEPROM_ADDR, 1, &eedev); + CONFIG_SYS_IVM_EEPROM_ADR, 1, &eedev); if (ret) { printf("failed to get device for EEPROM at address 0x%02x\n", - CONFIG_SYS_I2C_EEPROM_ADDR); + CONFIG_SYS_IVM_EEPROM_ADR); return 1; } ret = dm_i2c_read(eedev, 0, buf, len); if (ret != 0) { printf("Error: Unable to read from I2C EEPROM at address %02X:%02X\n", - CONFIG_SYS_I2C_EEPROM_ADDR, 0); + CONFIG_SYS_IVM_EEPROM_ADR, 0); return 1; } #else diff --git a/include/configs/kmcent2.h b/include/configs/kmcent2.h index 51a01d860f0..fe90aeb6e85 100644 --- a/include/configs/kmcent2.h +++ b/include/configs/kmcent2.h @@ -189,7 +189,6 @@ #define CONFIG_SYS_SDRAM_SIZE 4096 /* for fixed parameter use */ #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ -#define CONFIG_SYS_I2C_EEPROM_ADDR CONFIG_SYS_IVM_EEPROM_ADR #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 /****************************************************************************** |
