summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorMarshall Dawson <marshalldawson3rd@gmail.com>2017-11-09 16:55:31 -0700
committerAaron Durbin <adurbin@chromium.org>2017-11-10 19:16:32 +0000
commitf9592ccef09821b5b5cb0c8245bded4c8c339c51 (patch)
treef1733ccfd1a21d3b260d4eb85d16819cf91b3b1b /src/soc
parent68592c34e3ee76228b739e05ed0e5b2d5290e98a (diff)
downloadcoreboot-f9592ccef09821b5b5cb0c8245bded4c8c339c51.tar.xz
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>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/stoneyridge/southbridge.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/soc/amd/stoneyridge/southbridge.c b/src/soc/amd/stoneyridge/southbridge.c
index 8ea53012a2..0d96b5f773 100644
--- a/src/soc/amd/stoneyridge/southbridge.c
+++ b/src/soc/amd/stoneyridge/southbridge.c
@@ -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)