amd/stoneyridge: Use the new generic acpi_sleep_from_pm1

Unhardcode the acpi_get_sleep_type() function and rely on the new
function in arch/acpi.h.

Change-Id: Icd49c44fae43effb9f082db354abd327cad9f1ad
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/22410
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
This commit is contained in:
Marshall Dawson 2017-11-09 16:55:31 -07:00 committed by Aaron Durbin
parent 68592c34e3
commit f9592ccef0
1 changed files with 1 additions and 3 deletions

View File

@ -32,9 +32,7 @@
int acpi_get_sleep_type(void) int acpi_get_sleep_type(void)
{ {
u16 tmp = inw(ACPI_PM1_CNT_BLK); return acpi_sleep_from_pm1(inw(pm_acpi_pm_cnt_blk()));
tmp = ((tmp & (7 << 10)) >> 10);
return (int)tmp;
} }
void sb_enable(device_t dev) void sb_enable(device_t dev)