summaryrefslogtreecommitdiff
path: root/board/bosch
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-08-17 17:59:38 -0400
committerTom Rini <trini@konsulko.com>2021-08-30 14:10:05 -0400
commitb61d18c07de68771fd347cf0ccf3e06ce5ddc298 (patch)
tree37dd9622e0a4a7f0a309815e36121947bd263518 /board/bosch
parent20815ecdcf7b6cf118229af5bb2b474ca2215158 (diff)
arm: shc: Change CONFIG_SYS_I2C_EEPROM_ADDR to EEPROM_ADDR
The shc platforms do not make use of the rest of the EEPROM infrastructure. Rather than make more elaborate Kconfig logic, remove this setting from the CONFIG namespace. Cc: Heiko Schocher <hs@denx.de> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/bosch')
-rw-r--r--board/bosch/shc/board.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/bosch/shc/board.c b/board/bosch/shc/board.c
index 13fd25e407..a7a9775fdf 100644
--- a/board/bosch/shc/board.c
+++ b/board/bosch/shc/board.c
@@ -51,16 +51,17 @@ static int shc_eeprom_valid;
/*
* Read header information from EEPROM into global structure.
*/
+#define EEPROM_ADDR 0x50
static int read_eeprom(void)
{
/* Check if baseboard eeprom is available */
- if (i2c_probe(CONFIG_SYS_I2C_EEPROM_ADDR)) {
+ if (i2c_probe(EEPROM_ADDR)) {
puts("Could not probe the EEPROM; something fundamentally wrong on the I2C bus.\n");
return -ENODEV;
}
/* read the eeprom using i2c */
- if (i2c_read(CONFIG_SYS_I2C_EEPROM_ADDR, 0, 2, (uchar *)&header,
+ if (i2c_read(EEPROM_ADDR, 0, 2, (uchar *)&header,
sizeof(header))) {
puts("Could not read the EEPROM; something fundamentally wrong on the I2C bus.\n");
return -EIO;