From: Stefan Roese Date: Fri, 5 Oct 2007 13:10:02 +0000 (+0200) Subject: DTT: Prepare DS1775 driver for use of different I2C addresses X-Git-Tag: v1.3.2-rc1~100^2~128 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4f2e92c11f6e2392fc8187829211a5ca7f0c1e12;p=oweals%2Fu-boot.git DTT: Prepare DS1775 driver for use of different I2C addresses Signed-off-by: Stefan Roese --- diff --git a/dtt/ds1775.c b/dtt/ds1775.c index e44cee3279..0fbb0b42a7 100644 --- a/dtt/ds1775.c +++ b/dtt/ds1775.c @@ -25,7 +25,7 @@ #include #include -#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) { diff --git a/include/configs/taihu.h b/include/configs/taihu.h index d623e56009..6d204a9b57 100644 --- a/include/configs/taihu.h +++ b/include/configs/taihu.h @@ -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