]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Socrates: add support for DS75 Digital Thermo Sensor on I2C bus.
authorSergei Poselenov <sposelenov@emcraft.com>
Tue, 27 May 2008 08:36:07 +0000 (10:36 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 27 May 2008 10:51:25 +0000 (12:51 +0200)
Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
include/configs/socrates.h

index 6bdef34d161d468a20267564c9041d5e0102d786..8595668be55842b152c880c341cabe253679f780 100644 (file)
 #define CONFIG_RTC_RX8025              /* Use Epson rx8025 rtc via i2c */
 #define CFG_I2C_RTC_ADDR       0x32    /* at address 0x32              */
 
+/* I2C temp sensor */
+/* Socrates uses Maxim's       DS75, which is compatible with LM75 */
+#define CONFIG_DTT_LM75                1
+#define CONFIG_DTT_SENSORS     {4}             /* Sensor addresses     */
+#define CFG_DTT_MAX_TEMP       125
+#define CFG_DTT_LOW_TEMP       -55
+#define CFG_DTT_HYSTERESIS     3
+#define CFG_EEPROM_PAGE_WRITE_ENABLE   /* necessary for the LM75 chip */
+#define CFG_EEPROM_PAGE_WRITE_BITS     4
+
 /* RapidIO MMU */
 #define CFG_RIO_MEM_BASE       0xc0000000      /* base address         */
 #define CFG_RIO_MEM_PHYS       CFG_RIO_MEM_BASE
 
 #define CONFIG_CMD_DATE
 #define CONFIG_CMD_DHCP
-#undef CONFIG_CMD_DTT
+#define CONFIG_CMD_DTT
 #undef CONFIG_CMD_EEPROM
 #define CONFIG_CMD_I2C
 #define CONFIG_CMD_MII