From e361864e9fe4a5030674d6350c6057d9f4e4d90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Thu, 5 Jan 2023 16:31:19 +0200 Subject: mb/google,intel,samsung: Use common poweroff() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I3881c152663a038833d8126d7f24f2a6688426d1 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/74515 Reviewed-by: Arthur Heymans Tested-by: build bot (Jenkins) --- src/mainboard/google/stout/smihandler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainboard/google/stout/smihandler.c') diff --git a/src/mainboard/google/stout/smihandler.c b/src/mainboard/google/stout/smihandler.c index f6adbf9534..30637ab8c5 100644 --- a/src/mainboard/google/stout/smihandler.c +++ b/src/mainboard/google/stout/smihandler.c @@ -3,10 +3,10 @@ #include #include #include +#include #include #include #include -#include #include /* Include EC functions */ @@ -21,7 +21,7 @@ static u8 mainboard_smi_ec(void) case EC_SMI_LID_CLOSED: printk(BIOS_DEBUG, "LID CLOSED, SHUTDOWN\n"); /* Go to S5 */ - write_pmbase32(PM1_CNT, read_pmbase32(PM1_CNT) | (0xf << 10)); + poweroff(); break; } -- cgit v1.2.3