1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpi_gnvs.h>
4 #include <device/device.h>
6 #include <southbridge/intel/lynxpoint/pch.h>
7 #include <variant/thermal.h>
9 void mainboard_fill_gnvs(struct global_nvs
*gnvs
)
14 gnvs
->f4of
= FAN4_THRESHOLD_OFF
;
15 gnvs
->f4on
= FAN4_THRESHOLD_ON
;
16 gnvs
->f4pw
= FAN4_PWM
;
18 gnvs
->f3of
= FAN3_THRESHOLD_OFF
;
19 gnvs
->f3on
= FAN3_THRESHOLD_ON
;
20 gnvs
->f3pw
= FAN3_PWM
;
22 gnvs
->f2of
= FAN2_THRESHOLD_OFF
;
23 gnvs
->f2on
= FAN2_THRESHOLD_ON
;
24 gnvs
->f2pw
= FAN2_PWM
;
26 gnvs
->f1of
= FAN1_THRESHOLD_OFF
;
27 gnvs
->f1on
= FAN1_THRESHOLD_ON
;
28 gnvs
->f1pw
= FAN1_PWM
;
30 gnvs
->f0of
= FAN0_THRESHOLD_OFF
;
31 gnvs
->f0on
= FAN0_THRESHOLD_ON
;
32 gnvs
->f0pw
= FAN0_PWM
;
34 gnvs
->tcrt
= CRITICAL_TEMPERATURE
;
35 gnvs
->tpsv
= PASSIVE_TEMPERATURE
;
36 gnvs
->tmax
= MAX_TEMPERATURE
;