summaryrefslogtreecommitdiff
path: root/src/mainboard/samsung
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2023-04-19 17:04:08 +0300
committerFelix Held <felix-coreboot@felixheld.de>2023-04-22 16:22:09 +0000
commit7765b1019a2418db200f42cfe85691add3231b9c (patch)
tree1a5b255293b4aee814f2e097917cfd63249f5afb /src/mainboard/samsung
parenta9dd3c3fae07b8740c9da30c691a738e8d5e5fa4 (diff)
samsung/lumpy: Use APMC defines
Change-Id: I658596da1d84b486126d751b6066c3efd3f65290 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74523 Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/mainboard/samsung')
-rw-r--r--src/mainboard/samsung/lumpy/smihandler.c4
1 files changed, 2 insertions, 2 deletions
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;