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>
5 #include "ec.h"
6 
8 #include <soc/nvs.h>
9 #include "thermal.h"
10 #include "onboard.h"
11 
13 {
14  /* Disable USB ports in S3 by default */
15  gnvs->s3u0 = 0;
16  gnvs->s3u1 = 0;
17 
18  /* Disable USB ports in S5 by default */
19  gnvs->s5u0 = 0;
20  gnvs->s5u1 = 0;
21 
22  /* EC handles all active thermal and fan control on Parrot. */
25 
26  // the lid is open by default.
27  gnvs->lids = 1;
28 
29  // set trackpad IRQ
30  if (parrot_rev() < 0x2) { /* DVT vs PVT */
32  } else {
34  }
35 }
#define BOARD_TRACKPAD_IRQ_DVT
Definition: onboard.h:8
#define BOARD_TRACKPAD_IRQ_PVT
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
u8 parrot_rev(void)
Definition: ec.c:55
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
u8 tpiq
Definition: nvs.h:106
uint8_t tpsv
Definition: nvs.h:24