summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-17 03:25:03 -0600
committerTom Rini <trini@konsulko.com>2017-05-22 08:37:09 -0400
commit2c6ebff1e12a6553719356c879e2b41ee8d36af8 (patch)
tree663a499e0d150d25205849d8e1f30b3f2e83577c
parent879704d8f7387b05272b79197a3c782d1499283b (diff)
downloadu-boot-2c6ebff1e12a6553719356c879e2b41ee8d36af8.tar.gz
u-boot-2c6ebff1e12a6553719356c879e2b41ee8d36af8.tar.bz2
u-boot-2c6ebff1e12a6553719356c879e2b41ee8d36af8.zip
Kconfig: Drop CONFIG_SYS_I2C_DTT_ADDR
This option is only defined to a non-default value by canyonlands, which needs conversion to driver model (where the I2C address would be defined by the device tree). 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>
-rw-r--r--README6
-rw-r--r--drivers/hwmon/ds1775.c2
-rw-r--r--drivers/hwmon/lm75.c4
-rw-r--r--include/configs/canyonlands.h4
-rw-r--r--include/configs/kilauea.h1
-rw-r--r--include/configs/makalu.h1
-rw-r--r--scripts/config_whitelist.txt1
7 files changed, 1 insertions, 18 deletions
diff --git a/README b/README
index 99af4c5bbf..a31065b6f5 100644
--- a/README
+++ b/README
@@ -2329,12 +2329,6 @@ The following options need to be configured:
If defined, then this indicates the I2C bus number for the DTT.
If not defined, then U-Boot assumes that DTT is on I2C bus 0.
- CONFIG_SYS_I2C_DTT_ADDR:
-
- If defined, specifies the I2C address of the DTT device.
- If not defined, then U-Boot uses predefined value for
- specified DTT device.
-
CONFIG_SOFT_I2C_READ_REPEATED_START
defining this will force the i2c_read() function in
diff --git a/drivers/hwmon/ds1775.c b/drivers/hwmon/ds1775.c
index b95b130d92..4c0c0b82a0 100644
--- a/drivers/hwmon/ds1775.c
+++ b/drivers/hwmon/ds1775.c
@@ -11,7 +11,7 @@
#include <i2c.h>
#include <dtt.h>
-#define DTT_I2C_DEV_CODE CONFIG_SYS_I2C_DTT_ADDR /* Dallas Semi's DS1775 device code */
+#define DTT_I2C_DEV_CODE 0x48 /* Dallas Semi's DS1775 device code */
#define DTT_READ_TEMP 0x0
#define DTT_CONFIG 0x1
#define DTT_TEMP_HYST 0x2
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index 462f902dad..aafa4757b1 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -16,11 +16,7 @@
/*
* Device code
*/
-#if defined(CONFIG_SYS_I2C_DTT_ADDR)
-#define DTT_I2C_DEV_CODE CONFIG_SYS_I2C_DTT_ADDR
-#else
#define DTT_I2C_DEV_CODE 0x48 /* ON Semi's LM75 device */
-#endif
#define DTT_READ_TEMP 0x0
#define DTT_CONFIG 0x1
#define DTT_TEMP_HYST 0x2
diff --git a/include/configs/canyonlands.h b/include/configs/canyonlands.h
index a330372d19..ea440d6e16 100644
--- a/include/configs/canyonlands.h
+++ b/include/configs/canyonlands.h
@@ -269,10 +269,6 @@
#define CONFIG_SYS_DTT_LOW_TEMP -30
#define CONFIG_SYS_DTT_HYSTERESIS 3
-#if defined(CONFIG_ARCHES)
-#define CONFIG_SYS_I2C_DTT_ADDR 0x4a /* AD7414 I2C address */
-#endif
-
#if !defined(CONFIG_ARCHES)
/* RTC configuration */
#define CONFIG_RTC_M41T62
diff --git a/include/configs/kilauea.h b/include/configs/kilauea.h
index 1f5c2ad234..b8c0d0d8f0 100644
--- a/include/configs/kilauea.h
+++ b/include/configs/kilauea.h
@@ -320,7 +320,6 @@
/* Standard DTT sensor configuration */
#define CONFIG_DTT_DS1775 1
#define CONFIG_DTT_SENSORS { 0 }
-#define CONFIG_SYS_I2C_DTT_ADDR 0x48
/* RTC configuration */
#define CONFIG_RTC_DS1338 1
diff --git a/include/configs/makalu.h b/include/configs/makalu.h
index da5cfa19d3..cdb02f3693 100644
--- a/include/configs/makalu.h
+++ b/include/configs/makalu.h
@@ -192,7 +192,6 @@
/* Standard DTT sensor configuration */
#define CONFIG_DTT_DS1775 1
#define CONFIG_DTT_SENSORS { 0 }
-#define CONFIG_SYS_I2C_DTT_ADDR 0x48
/* RTC configuration */
#define CONFIG_RTC_X1205 1
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 5c4922c859..da5aa39d32 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -4205,7 +4205,6 @@ CONFIG_SYS_I2C_DSPIC_2_ADDR
CONFIG_SYS_I2C_DSPIC_ADDR
CONFIG_SYS_I2C_DSPIC_IO_ADDR
CONFIG_SYS_I2C_DSPIC_KEYB_ADDR
-CONFIG_SYS_I2C_DTT_ADDR
CONFIG_SYS_I2C_DVI_ADDR
CONFIG_SYS_I2C_DVI_BUS_NUM
CONFIG_SYS_I2C_EARLY_INIT