mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / samsung / stumpy / acpi_tables.c
blob6912ca1a76eaa2bd8d0b68a9ed11c4e271bcfd0f
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <acpi/acpi_gnvs.h>
4 #include <device/device.h>
5 #include <soc/nvs.h>
7 #include "thermal.h"
9 void mainboard_fill_gnvs(struct global_nvs *gnvs)
11 /* Enable Front USB ports in S3 by default */
12 gnvs->s3u0 = 1;
13 gnvs->s3u1 = 1;
16 * Enable Front USB ports in S5 by default
17 * to be consistent with back port behavior
19 gnvs->s5u0 = 1;
20 gnvs->s5u1 = 1;
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;
45 gnvs->flvl = 5;