1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef EC_KONTRON_IT8516E_EC_H
4 #define EC_KONTRON_IT8516E_EC_H
6 enum { /* PNP logical device numbers */
7 IT8516E_LDN_UART1
= 0x01,
8 IT8516E_LDN_UART2
= 0x02,
9 IT8516E_LDN_SWUC
= 0x04,
10 IT8516E_LDN_MOUSE
= 0x05,
11 IT8516E_LDN_KBD
= 0x06,
12 IT8516E_LDN_SMFI
= 0x0f,
13 IT8516E_LDN_BRAM
= 0x10,
14 IT8516E_LDN_PM1
= 0x11,
15 IT8516E_LDN_PM2
= 0x12,
16 IT8516E_LDN_PM3
= 0x17,
19 enum it8516e_fan_modes
{ /* Possible modes of fan control */
20 IT8516E_MODE_AUTO
= 0x80,
21 IT8516E_MODE_PWM
= 0x01,
22 IT8516E_MODE_SPEED
= 0x02,
23 IT8516E_MODE_THERMAL
= 0x03,
26 enum it8516e_systemp_types
{ /* Possible sources of system temperature */
27 IT8516E_SYSTEMP_NONE
= 0x00,
28 IT8516E_SYSTEMP_AMD
= 0x01,
29 IT8516E_SYSTEMP_LM75_90
= 0x02,
30 IT8516E_SYSTEMP_GPIO16
= 0x03,
31 IT8516E_SYSTEMP_LM75_9e
= 0x04,
33 /* add any new types above this line. */
34 IT8516E_SYSTEMP_LASTPLUSONE
,