From 7765b1019a2418db200f42cfe85691add3231b9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Wed, 19 Apr 2023 17:04:08 +0300 Subject: samsung/lumpy: Use APMC defines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I658596da1d84b486126d751b6066c3efd3f65290 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/74523 Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/mainboard/samsung/lumpy/smihandler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainboard/samsung/lumpy') diff --git a/src/mainboard/samsung/lumpy/smihandler.c b/src/mainboard/samsung/lumpy/smihandler.c index 1c7d626a9c..50cfa47418 100644 --- a/src/mainboard/samsung/lumpy/smihandler.c +++ b/src/mainboard/samsung/lumpy/smihandler.c @@ -47,12 +47,12 @@ int mainboard_smi_apmc(u8 apmc) ec_set_ports(EC_MAILBOX_PORT, EC_MAILBOX_PORT+1); switch (apmc) { - case 0xe1: /* ACPI ENABLE */ + case APM_CNT_ACPI_ENABLE: send_ec_command(EC_SMI_DISABLE); send_ec_command(EC_ACPI_ENABLE); break; - case 0x1e: /* ACPI DISABLE */ + case APM_CNT_ACPI_DISABLE: send_ec_command(EC_SMI_ENABLE); send_ec_command(EC_ACPI_DISABLE); break; -- cgit v1.2.3