From: Heiko Schocher Date: Wed, 15 Oct 2008 07:38:07 +0000 (+0200) Subject: mgcoge, mgsuvd: add DTT (LM75) support. X-Git-Tag: v2009.01-rc1~157^2^2~36 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e5e4edd9f1f76210a09c34ee835f6cff60fdbbd1;p=u-boot mgcoge, mgsuvd: add DTT (LM75) support. Signed-off-by: Heiko Schocher --- diff --git a/include/configs/mgcoge.h b/include/configs/mgcoge.h index 8cff642143..bfbbd455ac 100644 --- a/include/configs/mgcoge.h +++ b/include/configs/mgcoge.h @@ -81,6 +81,7 @@ */ #include +#define CONFIG_CMD_DTT #define CONFIG_CMD_ECHO #define CONFIG_CMD_EEPROM #define CONFIG_CMD_I2C @@ -209,6 +210,14 @@ #define CFG_EEPROM_PAGE_WRITE_BITS 3 #define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10 +/* I2C SYSMON (LM75, AD7414 is almost compatible) */ +#define CONFIG_DTT_LM75 1 /* ON Semi's LM75 */ +#define CONFIG_DTT_SENSORS {0} /* Sensor addresses */ +#define CFG_DTT_MAX_TEMP 70 +#define CFG_DTT_LOW_TEMP -30 +#define CFG_DTT_HYSTERESIS 3 +#define CFG_DTT_BUS_NUM (CFG_MAX_I2C_BUS) + #define CFG_IMMR 0xF0000000 #define CFG_INIT_RAM_ADDR CFG_IMMR diff --git a/include/configs/mgsuvd.h b/include/configs/mgsuvd.h index 85c6ac9b04..c569c81638 100644 --- a/include/configs/mgsuvd.h +++ b/include/configs/mgsuvd.h @@ -113,6 +113,7 @@ #define CONFIG_CMD_ASKENV #define CONFIG_CMD_DHCP +#define CONFIG_CMD_DTT #define CONFIG_CMD_EEPROM #define CONFIG_CMD_I2C #define CONFIG_CMD_NFS @@ -380,4 +381,12 @@ #define CFG_EEPROM_PAGE_WRITE_BITS 3 #define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10 +/* I2C SYSMON (LM75, AD7414 is almost compatible) */ +#define CONFIG_DTT_LM75 1 /* ON Semi's LM75 */ +#define CONFIG_DTT_SENSORS {0, 2, 4, 6} /* Sensor addresses */ +#define CFG_DTT_MAX_TEMP 70 +#define CFG_DTT_LOW_TEMP -30 +#define CFG_DTT_HYSTERESIS 3 +#define CFG_DTT_BUS_NUM (CFG_MAX_I2C_BUS) + #endif /* __CONFIG_H */