summaryrefslogtreecommitdiff
path: root/src/drivers/i2c/w83793/chip.h
blob: ea992e47b0e0ac24ed1a9745c31707e189923af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/* SPDX-License-Identifier: GPL-2.0-only */

struct drivers_i2c_w83793_config {
	u8 mfc;
	u8 fanin;
	u8 fanin_sel;
	u8 peci_agent_conf;
	u8 tcase0;			/* °C */
	u8 tcase1;			/* °C */
	u8 tcase2;			/* °C */
	u8 tcase3;			/* °C */
	u8 tr_enable;
	u8 td_mode_select;
	u8 critical_temperature;	/* °C */

	u32 vcorea_high_limit_mv;	/* mV */
	u32 vcorea_low_limit_mv;	/* mV */
	u32 vcoreb_high_limit_mv;	/* mV */
	u32 vcoreb_low_limit_mv;	/* mV */
	u32 vtt_high_limit_mv;		/* mV */
	u32 vtt_low_limit_mv;		/* mV */
	u32 vsen1_high_limit_mv;	/* mV */
	u32 vsen1_low_limit_mv;		/* mV */
	u32 vsen2_high_limit_mv;	/* mV */
	u32 vsen2_low_limit_mv;		/* mV */
	u32 vsen3_high_limit_mv;	/* mV */
	u32 vsen3_low_limit_mv;		/* mV */
	u32 vsen4_high_limit_mv;	/* mV */
	u32 vsen4_low_limit_mv;		/* mV */
	u32 vdd_high_limit_mv;		/* mV */
	u32 vdd_low_limit_mv;		/* mV */
	u32 vsb_high_limit_mv;		/* mV */
	u32 vsb_low_limit_mv;		/* mV */
	u32 vbat_high_limit_mv;		/* mV */
	u32 vbat_low_limit_mv;		/* mV */

	u8 td1_critical_temperature;	/* °C */
	u8 td1_critical_hysteresis;	/* °C */
	u8 td1_warning_temperature;	/* °C */
	u8 td1_warning_hysteresis;	/* °C */
	u8 td2_critical_temperature;	/* °C */
	u8 td2_critical_hysteresis;	/* °C */
	u8 td2_warning_temperature;	/* °C */
	u8 td2_warning_hysteresis;	/* °C */
	u8 td3_critical_temperature;	/* °C */
	u8 td3_critical_hysteresis;	/* °C */
	u8 td3_warning_temperature;	/* °C */
	u8 td3_warning_hysteresis;	/* °C */
	u8 td4_critical_temperature;	/* °C */
	u8 td4_critical_hysteresis;	/* °C */
	u8 td4_warning_temperature;	/* °C */
	u8 td4_warning_hysteresis;	/* °C */
	u8 tr1_critical_temperature;	/* °C */
	u8 tr1_critical_hysteresis;	/* °C */
	u8 tr1_warning_temperature;	/* °C */
	u8 tr1_warning_hysteresis;	/* °C */
	u8 tr2_critical_temperature;	/* °C */
	u8 tr2_critical_hysteresis;	/* °C */
	u8 tr2_warning_temperature;	/* °C */
	u8 tr2_warning_hysteresis;	/* °C */

	u8 fanctrl1;
	u8 fanctrl2;
	u8 first_valid_fan_number;

	u8 td1_fan_select;
	u8 td2_fan_select;
	u8 td3_fan_select;
	u8 td4_fan_select;

	u8 tr1_fan_select;
	u8 tr2_fan_select;

	u8 fan1_nonstop;		/* % of full speed (0-100) */
	u8 fan2_nonstop;		/* % of full speed (0-100) */
	u8 fan3_nonstop;		/* % of full speed (0-100) */
	u8 fan4_nonstop;		/* % of full speed (0-100) */
	u8 fan5_nonstop;		/* % of full speed (0-100) */
	u8 fan6_nonstop;		/* % of full speed (0-100) */
	u8 fan7_nonstop;		/* % of full speed (0-100) */
	u8 fan8_nonstop;		/* % of full speed (0-100) */

	u8 default_speed;		/* % of full speed (0-100) */

	u8 fan1_duty;			/* % of full speed (0-100) */
	u8 fan2_duty;			/* % of full speed (0-100) */
	u8 fan3_duty;			/* % of full speed (0-100) */
	u8 fan4_duty;			/* % of full speed (0-100) */
	u8 fan5_duty;			/* % of full speed (0-100) */
	u8 fan6_duty;			/* % of full speed (0-100) */
	u8 fan7_duty;			/* % of full speed (0-100) */
	u8 fan8_duty;			/* % of full speed (0-100) */
};