summaryrefslogtreecommitdiff
path: root/include/dtt.h
diff options
context:
space:
mode:
authorLarry Johnson <lrj@arlinx.com>2007-12-27 09:52:17 -0500
committerStefan Roese <sr@denx.de>2007-12-27 19:35:35 +0100
commit9e2c347151db5ae8acf5f18b99493cd53e6637e3 (patch)
treeccf324c61fd2c6837510600f64e92cee65915b77 /include/dtt.h
parent12618278688ea9b3d76536960a5ad2e3790fac40 (diff)
Add driver for National Semiconductor LM73 temperature sensor
This driver is based on the driver for the LM75. Signed-off-by: Larry Johnson <lrj@acm.org>
Diffstat (limited to 'include/dtt.h')
-rw-r--r--include/dtt.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/dtt.h b/include/dtt.h
index 2e8c690158f..4e8aaad87fe 100644
--- a/include/dtt.h
+++ b/include/dtt.h
@@ -31,7 +31,8 @@
defined(CONFIG_DTT_DS1621) || \
defined(CONFIG_DTT_DS1775) || \
defined(CONFIG_DTT_LM81) || \
- defined(CONFIG_DTT_ADM1021)
+ defined(CONFIG_DTT_ADM1021) || \
+ defined(CONFIG_DTT_LM73)
#define CONFIG_DTT /* We have a DTT */
@@ -119,4 +120,13 @@ extern int dtt_get_temp(int sensor);
#define DTT_ADM1021_DEVID 0x41
#endif
+#if defined(CONFIG_DTT_LM73)
+#define DTT_READ_TEMP 0x0
+#define DTT_CONFIG 0x1
+#define DTT_TEMP_HIGH 0x2
+#define DTT_TEMP_LOW 0x3
+#define DTT_CONTROL 0x4
+#define DTT_ID 0x7
+#endif
+
#endif /* _DTT_H_ */