summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergei Poselenov <sposelenov@emcraft.com>2008-05-27 10:36:07 +0200
committerWolfgang Denk <wd@denx.de>2008-05-27 12:51:25 +0200
commit2f7468aeba60e1288030a8d007c4e63bd3f13221 (patch)
treecf82de7623dbc9c15178ac040435c0a5163f28f3 /include
parent83e9d7a2614d4006b92690afa3390c291734267e (diff)
downloadu-boot-imx-2f7468aeba60e1288030a8d007c4e63bd3f13221.zip
u-boot-imx-2f7468aeba60e1288030a8d007c4e63bd3f13221.tar.gz
u-boot-imx-2f7468aeba60e1288030a8d007c4e63bd3f13221.tar.bz2
Socrates: add support for DS75 Digital Thermo Sensor on I2C bus.
Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/socrates.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/configs/socrates.h b/include/configs/socrates.h
index 6bdef34..8595668 100644
--- a/include/configs/socrates.h
+++ b/include/configs/socrates.h
@@ -206,6 +206,16 @@
#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
@@ -293,7 +303,7 @@
#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