2020-04-05 13:20:46 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2015-06-09 22:42:55 +02:00
|
|
|
|
2020-05-02 19:24:23 +02:00
|
|
|
#include <acpi/acpi.h>
|
2020-06-17 22:37:49 +02:00
|
|
|
#include <acpi/acpi_gnvs.h>
|
2015-06-10 05:18:38 +02:00
|
|
|
#include <soc/acpi.h>
|
|
|
|
#include <soc/nvs.h>
|
2016-12-18 18:59:58 +01:00
|
|
|
#include <variant/thermal.h>
|
2015-06-10 05:18:38 +02:00
|
|
|
|
2020-06-17 22:37:49 +02:00
|
|
|
void acpi_create_gnvs(struct global_nvs *gnvs)
|
2015-06-09 22:42:55 +02:00
|
|
|
{
|
|
|
|
/* Enable USB ports in S3 */
|
|
|
|
gnvs->s3u0 = 1;
|
|
|
|
|
|
|
|
/* Disable USB ports in S5 */
|
|
|
|
gnvs->s5u0 = 0;
|
|
|
|
|
2019-10-21 21:42:17 +02:00
|
|
|
gnvs->tmps = CTL_TDP_SENSOR_ID;
|
|
|
|
gnvs->tcrt = CRITICAL_TEMPERATURE;
|
|
|
|
gnvs->tpsv = PASSIVE_TEMPERATURE;
|
|
|
|
gnvs->tmax = MAX_TEMPERATURE;
|
|
|
|
gnvs->flvl = 1;
|
2015-06-09 22:42:55 +02:00
|
|
|
}
|
|
|
|
|
2020-06-02 02:34:43 +02:00
|
|
|
void mainboard_fill_fadt(acpi_fadt_t *fadt)
|
2020-05-30 17:33:40 +02:00
|
|
|
{
|
|
|
|
fadt->preferred_pm_profile = PM_MOBILE;
|
|
|
|
}
|