1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpi_gnvs.h>
4 #include <device/device.h>
9 void mainboard_fill_gnvs(struct global_nvs
*gnvs
)
11 /* Enable USB ports in S3 */
16 * Enable Front USB ports in S5 by default
17 * to be consistent with back port behavior
22 gnvs
->f4of
= FAN4_THRESHOLD_OFF
;
23 gnvs
->f4on
= FAN4_THRESHOLD_ON
;
24 gnvs
->f4pw
= FAN4_PWM
;
26 gnvs
->f3of
= FAN3_THRESHOLD_OFF
;
27 gnvs
->f3on
= FAN3_THRESHOLD_ON
;
28 gnvs
->f3pw
= FAN3_PWM
;
30 gnvs
->f2of
= FAN2_THRESHOLD_OFF
;
31 gnvs
->f2on
= FAN2_THRESHOLD_ON
;
32 gnvs
->f2pw
= FAN2_PWM
;
34 gnvs
->f1of
= FAN1_THRESHOLD_OFF
;
35 gnvs
->f1on
= FAN1_THRESHOLD_ON
;
36 gnvs
->f1pw
= FAN1_PWM
;
38 gnvs
->f0of
= FAN0_THRESHOLD_OFF
;
39 gnvs
->f0on
= FAN0_THRESHOLD_ON
;
40 gnvs
->f0pw
= FAN0_PWM
;
42 gnvs
->tcrt
= CRITICAL_TEMPERATURE
;
43 gnvs
->tpsv
= PASSIVE_TEMPERATURE
;
44 gnvs
->tmax
= MAX_TEMPERATURE
;