From 0eb5974def63a2fc0dce6dfdad62b0b4c6f4b865 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Tue, 25 Apr 2023 16:23:37 +0200 Subject: 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 Change-Id: Ic21830c1ef9c183b1e3005cc1f8b7daf7e9ea998 Reviewed-on: https://review.coreboot.org/c/coreboot/+/74762 Reviewed-by: Nico Huber Reviewed-by: Jakub Czapiga Reviewed-by: Jan Samek Tested-by: build bot (Jenkins) Reviewed-by: Lean Sheng Tan --- src/southbridge/intel/common/acpi/sleepstates.asl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/southbridge/intel') diff --git a/src/southbridge/intel/common/acpi/sleepstates.asl b/src/southbridge/intel/common/acpi/sleepstates.asl index 079ab1ab84..14ed86e91e 100644 --- a/src/southbridge/intel/common/acpi/sleepstates.asl +++ b/src/southbridge/intel/common/acpi/sleepstates.asl @@ -15,6 +15,11 @@ If (CONFIG(DISABLE_ACPI_HIBERNATE)) { SSFG &= 0xf7 } +External (\OSFG, IntObj) +If (CondRefOf(\OSFG)) { + SSFG = \OSFG +} + /* Supported sleep states: */ Name(\_S0, Package () {0x00, 0x00, 0x00, 0x00} ) /* (S0) - working state */ -- cgit v1.2.3