]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: shc: Change CONFIG_SYS_I2C_EEPROM_ADDR to EEPROM_ADDR
authorTom Rini <trini@konsulko.com>
Tue, 17 Aug 2021 21:59:38 +0000 (17:59 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 30 Aug 2021 18:10:05 +0000 (14:10 -0400)
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>
board/bosch/shc/board.c
include/configs/am335x_shc.h

index 13fd25e4071030209b8c74617d3647a288aaeec0..a7a9775fdf4e8d348bcf56d99818d34855ffa9df 100644 (file)
@@ -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;
index 387d50d51199bb4daa465266f76634b44c92e890..5b0eba9afa42c14208283cc9ace6460cbb083ffd 100644 (file)
 #define CONFIG_NET_RETRY_COUNT         10
 
 /* I2C configuration */
-#define CONFIG_SYS_I2C_EEPROM_ADDR     0x50    /* Main EEPROM */
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
 #define CONFIG_SYS_I2C_SPEED           400000
 #define CONFIG_SYS_I2C_SLAVE           1