]> git.sur5r.net Git - u-boot/commitdiff
DTT: Prepare DS1775 driver for use of different I2C addresses
authorStefan Roese <sr@denx.de>
Fri, 5 Oct 2007 13:10:02 +0000 (15:10 +0200)
committerStefan Roese <sr@denx.de>
Wed, 31 Oct 2007 20:20:49 +0000 (21:20 +0100)
Signed-off-by: Stefan Roese <sr@denx.de>
dtt/ds1775.c
include/configs/taihu.h

index e44cee3279c72942d1f0f927d17e0a72c162fb1d..0fbb0b42a789d96fd4448c6fe2a929e578860ccf 100644 (file)
@@ -25,7 +25,7 @@
 #include <i2c.h>
 #include <dtt.h>
 
-#define DTT_I2C_DEV_CODE 0x49          /* Dallas Semi's DS1775 device code */
+#define DTT_I2C_DEV_CODE       CFG_I2C_DTT_ADDR /* Dallas Semi's DS1775 device code */
 
 int dtt_read(int sensor, int reg)
 {
index d623e56009aecf292978b94ce2c55d9558790c54..6d204a9b575398430a024999018bdf86f638e2a4 100644 (file)
@@ -244,6 +244,7 @@ unsigned char spi_read(void);
 /* standard dtt sensor configuration */
 #define CONFIG_DTT_DS1775      1
 #define CONFIG_DTT_SENSORS     { 0 }
+#define CFG_I2C_DTT_ADDR       0x49
 
 /*-----------------------------------------------------------------------
  * PCI stuff