sb/intel/common: Implement acpi_is_wakeup_s3()

acpi_is_wakeup_s3() requires acpi_get_sleep_type().

Change-Id: Ibe01863e685bcbc9652a72be0632cfbd83e18380
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52929
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
Arthur Heymans 2021-05-05 10:39:00 +02:00 committed by Patrick Georgi
parent 3aee3ad46d
commit 89c5553d41
1 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,11 @@ u8 read_pmbase8(const u8 addr)
return inb(lpc_get_pmbase() + addr);
}
int acpi_get_sleep_type(void)
{
return acpi_sleep_from_pm1(read_pmbase32(PM1_CNT));
}
int platform_is_resuming(void)
{
u16 reg16 = read_pmbase16(PM1_STS);