xref: /openbmc/qemu/include/hw/sensor/emc141x_regs.h (revision b91a0fa7)
1 /*
2  * SMSC EMC141X temperature sensor.
3  *
4  * Browse the data sheet:
5  *
6  *    http://ww1.microchip.com/downloads/en/DeviceDoc/20005274A.pdf
7  *
8  * This work is licensed under the terms of the GNU GPL, version 2 or
9  * later. See the COPYING file in the top-level directory.
10  */
11 
12 #ifndef TMP105_REGS_H
13 #define TMP105_REGS_H
14 
15 #define EMC1413_DEVICE_ID                0x21
16 #define EMC1414_DEVICE_ID                0x25
17 #define MANUFACTURER_ID                  0x5d
18 #define REVISION                         0x04
19 
20 /* the EMC141X registers */
21 #define EMC141X_TEMP_HIGH0               0x00
22 #define EMC141X_TEMP_HIGH1               0x01
23 #define EMC141X_TEMP_HIGH2               0x23
24 #define EMC141X_TEMP_HIGH3               0x2a
25 #define EMC141X_TEMP_MAX_HIGH0           0x05
26 #define EMC141X_TEMP_MIN_HIGH0           0x06
27 #define EMC141X_TEMP_MAX_HIGH1           0x07
28 #define EMC141X_TEMP_MIN_HIGH1           0x08
29 #define EMC141X_TEMP_MAX_HIGH2           0x15
30 #define EMC141X_TEMP_MIN_HIGH2           0x16
31 #define EMC141X_TEMP_MAX_HIGH3           0x2c
32 #define EMC141X_TEMP_MIN_HIGH3           0x2d
33 #define EMC141X_DEVICE_ID                0xfd
34 #define EMC141X_MANUFACTURER_ID          0xfe
35 #define EMC141X_REVISION                 0xff
36 
37 #endif
38