coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
gnvs.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 
7 {
8  /* Disable USB ports in S3 by default */
9  gnvs->s3u0 = 0;
10  gnvs->s3u1 = 0;
11 
12  /* Disable USB ports in S5 by default */
13  gnvs->s5u0 = 0;
14  gnvs->s5u1 = 0;
15 
16  /* the lid is open by default. */
17  gnvs->lids = 1;
18 
19  gnvs->tcrt = 100;
20  gnvs->tpsv = 90;
21 }
__weak void mainboard_fill_gnvs(struct global_nvs *gnvs_)
Definition: gnvs.c:60
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