summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorVictor Gallardo <vgallardo@amcc.com>2008-09-09 15:13:29 -0700
committerWolfgang Denk <wd@denx.de>2008-09-10 11:08:45 +0200
commit9ebbb54f7a25055010fa6668eba40c72a4c4f985 (patch)
tree2a53a651730e2a1a65f5b8968f08316534bf1aae /drivers/hwmon
parentf6808c48a5b484bfaf5a44dfd5f5db9129b71c6f (diff)
ppc4xx: Allow DTT_I2C_DEV_CODE configured by CFG_I2C_DTT_ADDR
On AMCC Arches board DTT_I2C_DEV_CODE is different then canyonlands and glacier. Signed-off-by: Victor Gallardo <vgallardo@amcc.com>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/lm75.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index 8051cb228c0..67a18f68d62 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -38,7 +38,11 @@
/*
* Device code
*/
+#if defined(CFG_I2C_DTT_ADDR)
+#define DTT_I2C_DEV_CODE CFG_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