mgcoge, mgsuvd: add DTT (LM75) support.
authorHeiko Schocher <hs@denx.de>
Wed, 15 Oct 2008 07:38:07 +0000 (09:38 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 18 Oct 2008 19:54:02 +0000 (21:54 +0200)
Signed-off-by: Heiko Schocher <hs@denx.de>
include/configs/mgcoge.h
include/configs/mgsuvd.h

index 8cff6421430f98060a95f5316ffeeb6b40885dd9..bfbbd455ac09edc5d3a887bdd18474d89e19bb10 100644 (file)
@@ -81,6 +81,7 @@
  */
 #include <config_cmd_default.h>
 
+#define CONFIG_CMD_DTT
 #define CONFIG_CMD_ECHO
 #define CONFIG_CMD_EEPROM
 #define CONFIG_CMD_I2C
 #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
index 85c6ac9b0453b3630aa63c9f1d8c6f31454a0ad4..c569c81638560e026dd9b4ffb421286745fdb05a 100644 (file)
 
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_DTT
 #define CONFIG_CMD_EEPROM
 #define CONFIG_CMD_I2C
 #define CONFIG_CMD_NFS
 #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 */