misc: Initial NCT1008 driver
[linux-2.6.git] / include / linux / nct1008.h
1 /*
2  * Copyright (C) 2010 Motorola, Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
16  * 02111-1307, USA
17  */
18
19 #ifndef _LINUX_NCT1008_H__
20 #define _LINUX_NCT1008_H__
21
22 /* NCT1008 Read Only Registers */
23 #define NCT_LOCAL_TEMP_RD                       0x00
24 #define NCT_EXT_TEMP_HIGH_RD                    0x01
25 #define NCT_EXT_TEMP_LOW_RD                     0x10
26 #define NCT_STATUS_RD                           0x02
27
28 /* NCT1008 Control Registers */
29 #define NCT_CONFIG_RD                           0x03
30 #define NCT_CONFIG_WR                           0x09
31 #define NCT_CONV_RATE_RD                        0x04
32 #define NCT_CONV_RATE_WR                        0x0A
33
34 /* NCT1008 Limit Registers */
35 #define NCT_LOCAL_TEMP_HIGH_LIMIT_RD            0x05
36 #define NCT_LOCAL_TEMP_LOW_LIMIT_RD             0x06
37 #define NCT_LOCAL_TEMP_HIGH_LIMIT_WR            0x0B
38 #define NCT_LOCAL_TEMP_LOW_LIMIT_WR             0x0C
39
40 #define NCT_EXT_TEMP_HIGH_LIMIT_HBYTE_RD        0x07
41 #define NCT_EXT_TEMP_LOW_LIMIT_HBYTE_RD         0x08
42 #define NCT_EXT_TEMP_HIGH_LIMIT_HBYTE_WR        0x0D
43 #define NCT_EXT_TEMP_LOW_LIMIT_HBYTE_WR         0x0E
44 #define NCT_EXT_TEMP_HIGH_LIMIT_LBYTE_RDWR      0x13
45 #define NCT_EXT_TEMP_LOW_LIMIT_LBYTE_RDWR       0x14
46 #define NCT_EXT_THERM_LIMIT                     0x19
47 #define NCT_LOCAL_THERM_LIMIT                   0x20
48
49 #define NCT_EXT_TEMP_OFFSET_HIGH_RDWR           0x11
50 #define NCT_EXT_TEMP_OFFSET_LOW_RDWR            0x12
51 #define NCT_THERM_HYST                          0x21
52 #define NCT_CONSEC_ALERT                        0x22
53
54 #endif  /* _LINUX_NCT1008_H__ */