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 "onboard.h"
5 
7 #include <soc/nvs.h>
8 #include "thermal.h"
9 
11 {
12  /* Disable USB ports in S3 by default */
13  gnvs->s3u0 = 0;
14  gnvs->s3u1 = 0;
15 
16  /* Disable USB ports in S5 by default */
17  gnvs->s5u0 = 0;
18  gnvs->s5u1 = 0;
19 
20  /* EC handles all thermal and fan control on Stout. */
24 
25  // the lid is open by default.
26  gnvs->lids = 1;
27 
28  /* XHCI Mode */
29  gnvs->xhci = XHCI_MODE;
30 }
#define XHCI_MODE
Definition: onboard.h:9
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
#define MAX_TEMPERATURE
Definition: thermal.h:20
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
u8 tmax
Definition: nvs.h:27
u8 xhci
Definition: nvs.h:99