diff options
author | Stefan Roese <sr@denx.de> | 2008-07-14 10:45:47 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-07-14 10:45:47 +0200 |
commit | 4b326101d6cfaeab8250988bc4c7f51e6c92d719 (patch) | |
tree | d04632af08591263f5cd6fc8a5c6ba8ac3d6d246 /drivers/hwmon/ds1775.c | |
parent | 69e2c6d0d13d7c8cf1612ac090bdc4c59ba6858e (diff) | |
parent | d5996dd555edf52721b7691a4c59de016251ed39 (diff) | |
download | u-boot-imx-4b326101d6cfaeab8250988bc4c7f51e6c92d719.zip u-boot-imx-4b326101d6cfaeab8250988bc4c7f51e6c92d719.tar.gz u-boot-imx-4b326101d6cfaeab8250988bc4c7f51e6c92d719.tar.bz2 |
Merge branch 'master' of /home/stefan/git/u-boot/u-boot into next
Diffstat (limited to 'drivers/hwmon/ds1775.c')
-rw-r--r-- | drivers/hwmon/ds1775.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/hwmon/ds1775.c b/drivers/hwmon/ds1775.c index 0fbb0b4..6a4d8e5 100644 --- a/drivers/hwmon/ds1775.c +++ b/drivers/hwmon/ds1775.c @@ -21,11 +21,14 @@ #include <common.h> -#ifdef CONFIG_DTT_DS1775 #include <i2c.h> #include <dtt.h> #define DTT_I2C_DEV_CODE CFG_I2C_DTT_ADDR /* Dallas Semi's DS1775 device code */ +#define DTT_READ_TEMP 0x0 +#define DTT_CONFIG 0x1 +#define DTT_TEMP_HYST 0x2 +#define DTT_TEMP_OS 0x3 int dtt_read(int sensor, int reg) { @@ -151,6 +154,3 @@ int dtt_get_temp(int sensor) { return (dtt_read(sensor, DTT_READ_TEMP) / 256); } - - -#endif /* CONFIG_DTT_DS1775 */ |