From e67f626664a1c9c6f21fe903cb37a2a57992fbba Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Thu, 28 Jun 2018 14:09:56 +0200 Subject: mb/google/stout: Use new PMBASE API Change-Id: Ibb13627bcd2ad023f7686b5ae0bd7331e09cf5b4 Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/27283 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Paul Menzel --- src/mainboard/google/stout/mainboard_smi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/mainboard/google/stout/mainboard_smi.c') diff --git a/src/mainboard/google/stout/mainboard_smi.c b/src/mainboard/google/stout/mainboard_smi.c index e25c576ba1..6a516455a1 100644 --- a/src/mainboard/google/stout/mainboard_smi.c +++ b/src/mainboard/google/stout/mainboard_smi.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -29,15 +30,12 @@ static u8 mainboard_smi_ec(void) { u8 cmd = ec_it8518_get_event(); - u32 pm1_cnt; switch (cmd) { case EC_SMI_LID_CLOSED: printk(BIOS_DEBUG, "LID CLOSED, SHUTDOWN\n"); /* Go to S5 */ - pm1_cnt = inl(smm_get_pmbase() + PM1_CNT); - pm1_cnt |= (0xf << 10); - outl(pm1_cnt, smm_get_pmbase() + PM1_CNT); + write_pmbase32(PM1_CNT, read_pmbase32(PM1_CNT) | (0xf << 10)); break; } -- cgit v1.2.3