From d4174b5f0275ac600eafe6d8965f3bd44c4b15cc Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Sat, 27 Jun 2020 14:25:20 +0300 Subject: mb/google: Drop aliases for APM_CNT_ACPI_xx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use defines found in . Change-Id: Ib75df13021120fb2c056782c252e97d6b036c7da Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/42848 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/mainboard/google/parrot/smihandler.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/mainboard/google/parrot/smihandler.c') diff --git a/src/mainboard/google/parrot/smihandler.c b/src/mainboard/google/parrot/smihandler.c index a71b2a30df..abfe3a3b18 100644 --- a/src/mainboard/google/parrot/smihandler.c +++ b/src/mainboard/google/parrot/smihandler.c @@ -68,14 +68,11 @@ void mainboard_smi_sleep(u8 slp_typ) } } -#define APMC_ACPI_EN 0xe1 -#define APMC_ACPI_DIS 0x1e - int mainboard_smi_apmc(u8 apmc) { printk(BIOS_DEBUG, "mainboard_smi_apmc: %x\n", apmc); switch (apmc) { - case APMC_ACPI_EN: + case APM_CNT_ACPI_ENABLE: printk(BIOS_DEBUG, "APMC: ACPI_EN\n"); /* Clear all pending events */ /* EC cmd:59 data:E8 */ @@ -85,7 +82,7 @@ int mainboard_smi_apmc(u8 apmc) /* Set LID GPI to generate SCIs */ gpi_route_interrupt(EC_LID_GPI, GPI_IS_SCI); break; - case APMC_ACPI_DIS: + case APM_CNT_ACPI_DISABLE: printk(BIOS_DEBUG, "APMC: ACPI_DIS\n"); /* Clear all pending events */ /* EC cmd:59 data:e9 */ -- cgit v1.2.3