diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2023-04-25 16:23:37 +0200 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2023-05-01 06:38:36 +0000 |
commit | 0eb5974def63a2fc0dce6dfdad62b0b4c6f4b865 (patch) | |
tree | 07c39c0c877c94778a483b69883642ebac786575 /src/include | |
parent | cd48c7ece3d38acaf67d25e35b1a66a47728aec8 (diff) |
acpigen: Add a runtime method to override exposed _Sx sleep states
This allows mainboards to override available sleep states at runtime.
This is done by adding a IntObj in SSDT that DSDT consumes to override
the available _Sx states.
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: Ic21830c1ef9c183b1e3005cc1f8b7daf7e9ea998
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74762
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Jakub Czapiga <jacz@semihalf.com>
Reviewed-by: Jan Samek <jan.samek@siemens.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/acpi/acpigen.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h index 180e93779d..fc1d01b4e3 100644 --- a/src/include/acpi/acpigen.h +++ b/src/include/acpi/acpigen.h @@ -695,4 +695,8 @@ void acpigen_resource_qword(u16 res_type, u16 gen_flags, u16 type_flags, /* Emits Notify(namestr, value) */ void acpigen_notify(const char *namestr, int value); +/* Create a namespace \OSFG to override the enabled sleep states */ +void acpigen_ssdt_override_sleep_states(bool enable_s1, bool enable_s2, bool enable_s3, + bool enable_s4); + #endif /* __ACPI_ACPIGEN_H__ */ |