summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGreg Meiste <w30289@motorola.com>2010-11-16 13:33:06 -0600
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:36:52 -0800
commitce469d64ab8b55799ec55c64954dcf64ef6ddb3d (patch)
tree0d51320666bd103cbc0c64cb44248f5ddff29d78 /include/linux
parent865349cf07c4829719f59c75c5c194569dec4cf2 (diff)
misc: Initial NCT1008 driver
Initial version of the NCT1008 driver to turn off the sensor when the device is suspended. This improves standby current drain. Change-Id: Ia64613c33c0052434d5e304c434605611e5ef789 Signed-off-by: Greg Meiste <w30289@motorola.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nct1008.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/include/linux/nct1008.h b/include/linux/nct1008.h
new file mode 100644
index 000000000000..c6b396246659
--- /dev/null
+++ b/include/linux/nct1008.h
@@ -0,0 +1,54 @@
+/*
+ * Copyright (C) 2010 Motorola, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ * 02111-1307, USA
+ */
+
+#ifndef _LINUX_NCT1008_H__
+#define _LINUX_NCT1008_H__
+
+/* NCT1008 Read Only Registers */
+#define NCT_LOCAL_TEMP_RD 0x00
+#define NCT_EXT_TEMP_HIGH_RD 0x01
+#define NCT_EXT_TEMP_LOW_RD 0x10
+#define NCT_STATUS_RD 0x02
+
+/* NCT1008 Control Registers */
+#define NCT_CONFIG_RD 0x03
+#define NCT_CONFIG_WR 0x09
+#define NCT_CONV_RATE_RD 0x04
+#define NCT_CONV_RATE_WR 0x0A
+
+/* NCT1008 Limit Registers */
+#define NCT_LOCAL_TEMP_HIGH_LIMIT_RD 0x05
+#define NCT_LOCAL_TEMP_LOW_LIMIT_RD 0x06
+#define NCT_LOCAL_TEMP_HIGH_LIMIT_WR 0x0B
+#define NCT_LOCAL_TEMP_LOW_LIMIT_WR 0x0C
+
+#define NCT_EXT_TEMP_HIGH_LIMIT_HBYTE_RD 0x07
+#define NCT_EXT_TEMP_LOW_LIMIT_HBYTE_RD 0x08
+#define NCT_EXT_TEMP_HIGH_LIMIT_HBYTE_WR 0x0D
+#define NCT_EXT_TEMP_LOW_LIMIT_HBYTE_WR 0x0E
+#define NCT_EXT_TEMP_HIGH_LIMIT_LBYTE_RDWR 0x13
+#define NCT_EXT_TEMP_LOW_LIMIT_LBYTE_RDWR 0x14
+#define NCT_EXT_THERM_LIMIT 0x19
+#define NCT_LOCAL_THERM_LIMIT 0x20
+
+#define NCT_EXT_TEMP_OFFSET_HIGH_RDWR 0x11
+#define NCT_EXT_TEMP_OFFSET_LOW_RDWR 0x12
+#define NCT_THERM_HYST 0x21
+#define NCT_CONSEC_ALERT 0x22
+
+#endif /* _LINUX_NCT1008_H__ */