summaryrefslogtreecommitdiff
path: root/src/soc/amd/stoneyridge
diff options
context:
space:
mode:
authorMarshall Dawson <marshalldawson3rd@gmail.com>2019-05-03 13:06:55 -0600
committerMartin Roth <martinroth@google.com>2019-06-06 18:52:21 +0000
commit26307c738537d4491f23c06bf00f7bcf29802223 (patch)
tree1f9bee1e08f5892981b6c5118a79c20a2b8fa56b /src/soc/amd/stoneyridge
parentec63a7140a3326fa177114a7253c74039ab07454 (diff)
soc/amd/stoneyridge: Relocate acpi_get_sleep_type()
Move the function into common code. Convert it to use the memory- mapped access type. Convert vboot_platform_is_resuming() to call it instead of duplicating the source. BUG=b:131682806 Change-Id: I245bebb8dc2d331cdd56acfb245a004536b792ab Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32658 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/stoneyridge')
-rw-r--r--src/soc/amd/stoneyridge/sb_util.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/soc/amd/stoneyridge/sb_util.c b/src/soc/amd/stoneyridge/sb_util.c
index 11bf73a723..7869065237 100644
--- a/src/soc/amd/stoneyridge/sb_util.c
+++ b/src/soc/amd/stoneyridge/sb_util.c
@@ -29,11 +29,6 @@ uint16_t pm_acpi_pm_evt_blk(void)
return pm_read16(PM_EVT_BLK);
}
-int acpi_get_sleep_type(void)
-{
- return acpi_sleep_from_pm1(inw(pm_acpi_pm_cnt_blk()));
-}
-
void save_uma_size(uint32_t size)
{
biosram_write32(BIOSRAM_UMA_SIZE, size);