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.h
>
4
#include <
acpi/acpi_gnvs.h
>
5
#include <
device/device.h
>
6
#include <soc/acpi.h>
7
#include <soc/nvs.h>
8
#include "
thermal.h
"
9
10
void
mainboard_fill_gnvs
(
struct
global_nvs
*
gnvs
)
11
{
12
/* Enable USB ports in S3 */
13
gnvs
->
s3u0
= 1;
14
15
/* Disable USB ports in S5 */
16
gnvs
->
s5u0
= 0;
17
18
gnvs
->
tcrt
=
CRITICAL_TEMPERATURE
;
19
gnvs
->
tpsv
=
PASSIVE_TEMPERATURE
;
20
gnvs
->
tmax
=
MAX_TEMPERATURE
;
21
}
22
23
void
mainboard_fill_fadt
(
acpi_fadt_t
*fadt)
24
{
25
fadt->
preferred_pm_profile
=
PM_MOBILE
;
26
}
acpi_gnvs.h
acpi.h
PM_MOBILE
@ PM_MOBILE
Definition:
acpi.h:835
device.h
mainboard_fill_gnvs
void mainboard_fill_gnvs(struct global_nvs *gnvs)
Definition:
acpi_tables.c:8
mainboard_fill_fadt
void mainboard_fill_fadt(acpi_fadt_t *fadt)
Definition:
acpi_tables.c:25
PASSIVE_TEMPERATURE
#define PASSIVE_TEMPERATURE
Definition:
thermal.h:10
CRITICAL_TEMPERATURE
#define CRITICAL_TEMPERATURE
Definition:
thermal.h:7
MAX_TEMPERATURE
#define MAX_TEMPERATURE
Definition:
thermal.h:20
gnvs
struct global_nvs * gnvs
Definition:
smm_module_handler.c:100
thermal.h
acpi_fadt
Definition:
acpi.h:707
acpi_fadt::preferred_pm_profile
u8 preferred_pm_profile
Definition:
acpi.h:712
global_nvs
Definition:
nvs.h:14
global_nvs::tcrt
uint8_t tcrt
Definition:
nvs.h:23
global_nvs::s3u0
u8 s3u0
Definition:
nvs.h:34
global_nvs::s5u0
u8 s5u0
Definition:
nvs.h:32
global_nvs::tpsv
uint8_t tpsv
Definition:
nvs.h:24
global_nvs::tmax
u8 tmax
Definition:
nvs.h:27
src
mainboard
intel
wtm2
acpi_tables.c
Generated by
1.9.1