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 <device/device.h>
6 #include <soc/nvs.h>
7 
8 #include "thermal.h"
9 
11 {
12  /* Enable USB ports in S3 */
13  gnvs->s3u0 = 1;
14  gnvs->s3u1 = 1;
15 
16  /* Disable USB ports in S5 */
17  gnvs->s5u0 = 0;
18  gnvs->s5u1 = 0;
19 
20  /* TPM Present */
21  gnvs->tpmp = 1;
22 
28  gnvs->flvl = 1;
29 }
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
#define TEMPERATURE_SENSOR_ID
Definition: thermal.h:6
#define EC_THROTTLE_POWER_LIMIT
Definition: thermal.h:9
struct global_nvs * gnvs
Definition: nvs.h:14
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 tmps
Definition: nvs.h:22
u8 tpmp
Definition: nvs.h:24
uint8_t tpsv
Definition: nvs.h:24
u8 tmax
Definition: nvs.h:27
u8 flvl
Definition: nvs.h:24
u8 f0pw
Definition: nvs.h:31