Kconfig: Drop CONFIG_SYS_I2C_DS4510_ADDR
authorSimon Glass <sjg@chromium.org>
Wed, 17 May 2017 09:25:07 +0000 (03:25 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 22 May 2017 12:37:12 +0000 (08:37 -0400)
This is only used by one board and always set to 0x51. Drop this option.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/misc/ds4510.c
include/configs/xpedite517x.h
include/configs/xpedite537x.h
scripts/config_whitelist.txt

index 9ffdafc9929d657e097f8e19dedc078ea61bbb60..55f8936513837617dfb3d3cbbeefc92d0588659b 100644 (file)
 #include <command.h>
 #include "ds4510.h"
 
-/* Default to an address that hopefully won't corrupt other i2c devices */
-#ifndef CONFIG_SYS_I2C_DS4510_ADDR
-#define CONFIG_SYS_I2C_DS4510_ADDR     (~0)
-#endif
-
 enum {
        DS4510_CMD_INFO,
        DS4510_CMD_DEVICE,
@@ -254,7 +249,7 @@ cmd_tbl_t cmd_ds4510[] = {
 
 int do_ds4510(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
-       static uint8_t chip = CONFIG_SYS_I2C_DS4510_ADDR;
+       static uint8_t chip = 0x51;
        cmd_tbl_t *c;
        ulong ul_arg2 = 0;
        ulong ul_arg3 = 0;
index 94aad2519e968b578e6cc0a679f401686306833b..cf84e1f99a7c3da4eaf4e13cf6926a333fe3c8cf 100644 (file)
@@ -234,9 +234,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_SYS_I2C_RTC_ADDR                0x68
 #define CONFIG_SYS_M41T11_BASE_YEAR    2000
 
-/* GPIO/EEPROM/SRAM */
-#define CONFIG_SYS_I2C_DS4510_ADDR     0x51
-
 /* GPIO */
 #define CONFIG_PCA953X
 #define CONFIG_SYS_I2C_PCA953X_ADDR0   0x18
index 826cd9aa5feb5e4b46663fc3c6936daa1d87ab63..d630f2a9c9b3503b88177daf6d124bee229168c1 100644 (file)
@@ -232,9 +232,6 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #define CONFIG_SYS_I2C_RTC_ADDR                0x68
 #define CONFIG_SYS_M41T11_BASE_YEAR    2000
 
-/* GPIO/EEPROM/SRAM */
-#define CONFIG_SYS_I2C_DS4510_ADDR     0x51
-
 /* GPIO */
 #define CONFIG_PCA953X
 #define CONFIG_SYS_I2C_PCA953X_ADDR0   0x18
index 495e63f6dc4fe94b7f98b0b8c5b94e0861c635f4..ac9d0d8572ab628995f749309bc7b64565167e7f 100644 (file)
@@ -4176,7 +4176,6 @@ CONFIG_SYS_I2C_CLK_OFFSET
 CONFIG_SYS_I2C_DAVINCI
 CONFIG_SYS_I2C_DIRECT_BUS
 CONFIG_SYS_I2C_DPMEM_OFFSET
-CONFIG_SYS_I2C_DS4510_ADDR
 CONFIG_SYS_I2C_DSPIC_2_ADDR
 CONFIG_SYS_I2C_DSPIC_ADDR
 CONFIG_SYS_I2C_DSPIC_IO_ADDR