coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
acpi_tables.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <acpi/acpi_gnvs.h>
4 #include <soc/nvs.h>
5 #include "thermal.h"
6 
8 {
9  /* 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 
17  // the lid is open by default.
18  gnvs->lids = 1;
19 
20  /* EC handles all thermal and fan control on Butterfly. */
23 }
void mainboard_fill_gnvs(struct global_nvs *gnvs)
Definition: acpi_tables.c:8
#define PASSIVE_TEMPERATURE
Definition: thermal.h:10
#define CRITICAL_TEMPERATURE
Definition: thermal.h:7
struct global_nvs * gnvs
Definition: nvs.h:14
uint8_t lids
Definition: nvs.h:17
uint8_t tcrt
Definition: nvs.h:23
u8 s5u1
Definition: nvs.h:33
u8 s3u0
Definition: nvs.h:34
u8 s3u1
Definition: nvs.h:35
u8 s5u0
Definition: nvs.h:32
uint8_t tpsv
Definition: nvs.h:24