Add driver for National Semiconductor LM73 temperature sensor
Subsystems (2)
PATCH 2/9 Add driver for National Semiconductor LM73 temperature sensor
This driver is based on the driver for the LM75.
Signed-off-by Larry Johnson <[email protected]>
---
Non-line-wrapped version. :-)
drivers/hwmon/Makefile | 1 + drivers/hwmon/lm73.c | 181 ++++++++++++++++++++++++++++++++++++++++++++++++ include/dtt.h | 12 +++- 3 files changed, 193 insertions(+), 1 deletions(-) create mode 100644 drivers/hwmon/lm73.c
drivers/hwmon/Makefile +1 -0
@@ -34,6 +34,7 @@ COBJS-y += adm1021.o COBJS-y += ds1621.o COBJS-y += ds1722.o COBJS-y += ds1775.o +COBJS-y += lm73.o COBJS-y += lm75.o COBJS-y += lm81.o
drivers/hwmon/lm73.c new file +181 -0
181 lines not on this page · raw message
include/dtt.h +11 -1
@@ -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_ */
Signature · 1 line
1.5.2.5