diff options
author | Richard Spiegel <richard.spiegel@amd.corp-partner.google.com> | 2018-10-26 13:25:01 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-12-03 13:21:35 +0000 |
commit | e24d7953bb4a862b32f554195fffb3c119a27161 (patch) | |
tree | 621d5fc455ce9bd4388488ba68d38beac3d8b839 /src/soc/amd/common/block | |
parent | 2c5ea145a4547c5c27de4bcc065a6345ea285fe6 (diff) | |
download | coreboot-e24d7953bb4a862b32f554195fffb3c119a27161.tar.xz |
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 <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/c/29296
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/soc/amd/common/block')
-rw-r--r-- | src/soc/amd/common/block/acpi/halt.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |