Debian Codegraph @

src/mainboard/google/auron/acpi_tables.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <acpi/acpi.h>
4 #include <acpi/acpi_gnvs.h>
5 #include <soc/acpi.h>
6 #include <soc/nvs.h>
7 #include <variant/thermal.h>
8
9 void mainboard_fill_gnvs(struct global_nvs *gnvs)
10 {
11 /* Enable USB ports in S3 */
12 gnvs->s3u0 = 1;
13 gnvs->s3u1 = gnvs->s3u0;
14
15 gnvs->tmps = CTL_TDP_SENSOR_ID;
16 gnvs->tcrt = CRITICAL_TEMPERATURE;
17 gnvs->tpsv = PASSIVE_TEMPERATURE;
18 gnvs->tmax = MAX_TEMPERATURE;
19 gnvs->flvl = 1;
20 }
21
22 void mainboard_fill_fadt(acpi_fadt_t *fadt)
23 {
24 fadt->preferred_pm_profile = PM_MOBILE;
25 }