From e24d7953bb4a862b32f554195fffb3c119a27161 Mon Sep 17 00:00:00 2001 From: Richard Spiegel Date: Fri, 26 Oct 2018 13:25:01 -0700 Subject: soc/amd/stoneyridge: Use new ACPI MMIO functions Replace IO access to ACPI registers with the new MMIO access functions. BUG=b:118049037 TEST=Build and boot grunt. Test ACPI related functionality. Change-Id: I7544169bb21982fcf7b1c07ab7c19c6f5e65ad56 Signed-off-by: Richard Spiegel Reviewed-on: https://review.coreboot.org/c/29296 Tested-by: build bot (Jenkins) Reviewed-by: Marshall Dawson --- src/soc/amd/common/block/acpi/halt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/soc/amd/common') diff --git a/src/soc/amd/common/block/acpi/halt.c b/src/soc/amd/common/block/acpi/halt.c index 8fba38dc03..8f36efb042 100644 --- a/src/soc/amd/common/block/acpi/halt.c +++ b/src/soc/amd/common/block/acpi/halt.c @@ -19,7 +19,8 @@ void poweroff(void) { - outl((SLP_TYP_S5 << SLP_TYP_SHIFT) | SLP_EN, pm_acpi_pm_cnt_blk()); + acpi_write32(MMIO_ACPI_PM1_CNT_BLK, + (SLP_TYP_S5 << SLP_TYP_SHIFT) | SLP_EN); /* * Setting SLP_TYP_S5 in PM1 triggers SLP_SMI, which is handled by SMM -- cgit v1.2.3