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:
parent
68592c34e3
commit
f9592ccef0
|
@ -32,9 +32,7 @@
|
|||
|
||||
int acpi_get_sleep_type(void)
|
||||
{
|
||||
u16 tmp = inw(ACPI_PM1_CNT_BLK);
|
||||
tmp = ((tmp & (7 << 10)) >> 10);
|
||||
return (int)tmp;
|
||||
return acpi_sleep_from_pm1(inw(pm_acpi_pm_cnt_blk()));
|
||||
}
|
||||
|
||||
void sb_enable(device_t dev)
|
||||
|
|
Loading…
Reference in New Issue