Skip to content
Snippets Groups Projects
Commit 4f2e92c1 authored by Stefan Roese's avatar Stefan Roese
Browse files

DTT: Prepare DS1775 driver for use of different I2C addresses


Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent 19e93b1e
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <i2c.h> #include <i2c.h>
#include <dtt.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) int dtt_read(int sensor, int reg)
{ {
......
...@@ -244,6 +244,7 @@ unsigned char spi_read(void); ...@@ -244,6 +244,7 @@ unsigned char spi_read(void);
/* standard dtt sensor configuration */ /* standard dtt sensor configuration */
#define CONFIG_DTT_DS1775 1 #define CONFIG_DTT_DS1775 1
#define CONFIG_DTT_SENSORS { 0 } #define CONFIG_DTT_SENSORS { 0 }
#define CFG_I2C_DTT_ADDR 0x49
/*----------------------------------------------------------------------- /*-----------------------------------------------------------------------
* PCI stuff * PCI stuff
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment