From ba39770f2e41918c14da3dddab4d119d996d4eec Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 8 Feb 2018 19:52:20 -0700 Subject: [PATCH] soc/amd/stoneyridge: Put outl arguments in correct order outl takes value then port. BUG=b:72130849 Test=None Change-Id: I010c8a4462e6e27f3d335b95305dfdb137453869 Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/23665 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Aaron Durbin Reviewed-by: Arthur Heymans --- src/soc/amd/stoneyridge/smihandler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/amd/stoneyridge/smihandler.c b/src/soc/amd/stoneyridge/smihandler.c index 7cc8900aa1..2830d18905 100644 --- a/src/soc/amd/stoneyridge/smihandler.c +++ b/src/soc/amd/stoneyridge/smihandler.c @@ -99,7 +99,7 @@ static void sb_apmc_smi_handler(void) case APM_CNT_ACPI_DISABLE: reg32 = inl(ACPI_PM1_CNT_BLK); reg32 &= ~(1 << 0); /* clear SCI_EN */ - outl(ACPI_PM1_CNT_BLK, reg32); + outl(reg32, ACPI_PM1_CNT_BLK); break; case ELOG_GSMI_APM_CNT: if (IS_ENABLED(CONFIG_ELOG_GSMI))