diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2023-01-05 16:31:19 +0200 |
---|---|---|
committer | Matt DeVillier <matt.devillier@amd.corp-partner.google.com> | 2023-05-09 15:34:59 +0000 |
commit | e361864e9fe4a5030674d6350c6057d9f4e4d90e (patch) | |
tree | 92f34bd9c00e83a173fbc7b269dccbd00785c331 /src/mainboard/google/parrot/smihandler.c | |
parent | 9641c0e1023ca137e76762e11425695c34c1edbc (diff) |
mb/google,intel,samsung: Use common poweroff()
Change-Id: I3881c152663a038833d8126d7f24f2a6688426d1
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74515
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/parrot/smihandler.c')
-rw-r--r-- | src/mainboard/google/parrot/smihandler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/google/parrot/smihandler.c b/src/mainboard/google/parrot/smihandler.c index 05f14af226..7d519e39a6 100644 --- a/src/mainboard/google/parrot/smihandler.c +++ b/src/mainboard/google/parrot/smihandler.c @@ -2,11 +2,11 @@ #include <console/console.h> #include <cpu/x86/smm.h> +#include <halt.h> #include <soc/nvs.h> #include <southbridge/intel/bd82x6x/pch.h> #include <southbridge/intel/bd82x6x/me.h> #include <southbridge/intel/common/pmutil.h> -#include <southbridge/intel/common/pmbase.h> #include <northbridge/intel/sandybridge/sandybridge.h> #include <ec/compal/ene932/ec.h> #include "ec.h" @@ -26,7 +26,7 @@ static u8 mainboard_smi_ec(void) printk(BIOS_DEBUG, "LID CLOSED, SHUTDOWN\n"); /* Go to S5 */ - write_pmbase32(PM1_CNT, read_pmbase32(PM1_CNT) | (0xf << 10)); + poweroff(); break; } @@ -42,7 +42,7 @@ void mainboard_smi_gpi(u32 gpi_sts) printk(BIOS_DEBUG, "LID CLOSED, SHUTDOWN\n"); /* Go to S5 */ - write_pmbase32(PM1_CNT, read_pmbase32(PM1_CNT) | (0xf << 10)); + poweroff(); } } |