blob: aa02f67be545613f95737bfb7a1135671d1dd48b [file] [log] [blame]
Angel Pons54c54722020-04-05 13:20:54 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Stefan Reinauerd7bd4eb2013-02-11 11:11:36 -08002
Kyösti Mälkki0c1dd9c2020-06-17 23:37:49 +03003#include <acpi/acpi_gnvs.h>
Kyösti Mälkki661ad462020-12-29 06:26:21 +02004#include <soc/nvs.h>
Stefan Reinauerd7bd4eb2013-02-11 11:11:36 -08005#include "thermal.h"
6
Kyösti Mälkkia9766c72020-06-29 02:56:49 +03007void mainboard_fill_gnvs(struct global_nvs *gnvs)
Stefan Reinauerd7bd4eb2013-02-11 11:11:36 -08008{
Stefan Reinauerd7bd4eb2013-02-11 11:11:36 -08009 /* Disable USB ports in S3 by default */
10 gnvs->s3u0 = 0;
11 gnvs->s3u1 = 0;
12
13 /* Disable USB ports in S5 by default */
14 gnvs->s5u0 = 0;
15 gnvs->s5u1 = 0;
16
Stefan Reinauerd7bd4eb2013-02-11 11:11:36 -080017 // the lid is open by default.
18 gnvs->lids = 1;
19
Peter Lemenkov6c2c0182019-10-21 21:42:17 +020020 /* EC handles all thermal and fan control on Butterfly. */
21 gnvs->tcrt = CRITICAL_TEMPERATURE;
22 gnvs->tpsv = PASSIVE_TEMPERATURE;
Stefan Reinauerd7bd4eb2013-02-11 11:11:36 -080023}