summaryrefslogtreecommitdiff
path: root/src/mainboard/google/link
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-06-27 14:25:20 +0300
committerPatrick Georgi <pgeorgi@google.com>2020-06-30 05:42:26 +0000
commitd4174b5f0275ac600eafe6d8965f3bd44c4b15cc (patch)
treea13f3410012d8e800c2d8646c1c0f9c5303ba721 /src/mainboard/google/link
parent07a4e56e7568720d561cfd788cc342a3901a6628 (diff)
mb/google: Drop aliases for APM_CNT_ACPI_xx
Use defines found in <cpu/x86/smm.h>. Change-Id: Ib75df13021120fb2c056782c252e97d6b036c7da Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42848 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/mainboard/google/link')
-rw-r--r--src/mainboard/google/link/mainboard_smi.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mainboard/google/link/mainboard_smi.c b/src/mainboard/google/link/mainboard_smi.c
index 88992713cc..e7ec33289d 100644
--- a/src/mainboard/google/link/mainboard_smi.c
+++ b/src/mainboard/google/link/mainboard_smi.c
@@ -76,19 +76,16 @@ void mainboard_smi_sleep(u8 slp_typ)
google_chromeec_set_wake_mask(LINK_EC_S3_WAKE_EVENTS);
}
-#define APMC_ACPI_EN 0xe1
-#define APMC_ACPI_DIS 0x1e
-
int mainboard_smi_apmc(u8 apmc)
{
switch (apmc) {
- case APMC_ACPI_EN:
+ case APM_CNT_ACPI_ENABLE:
google_chromeec_set_smi_mask(0);
/* Clear all pending events */
while (google_chromeec_get_event() != 0);
google_chromeec_set_sci_mask(LINK_EC_SCI_EVENTS);
break;
- case APMC_ACPI_DIS:
+ case APM_CNT_ACPI_DISABLE:
google_chromeec_set_sci_mask(0);
/* Clear all pending events */
while (google_chromeec_get_event() != 0);