From 045a42a34ee632ec2300f5e2ac4a31b75351b194 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 13 Apr 2021 23:09:11 +0200 Subject: mb/google/kahlee: use defines for GEVENT numbers Signed-off-by: Felix Held Change-Id: I353f0d241391dd1122c85866a74984b95ed54770 Reviewed-on: https://review.coreboot.org/c/coreboot/+/52305 Reviewed-by: Raul Rangel Reviewed-by: Marshall Dawson Tested-by: build bot (Jenkins) --- .../google/kahlee/variants/baseboard/include/baseboard/gpio.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mainboard/google') diff --git a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/gpio.h b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/gpio.h index 88510722c2..3ee027c4e4 100644 --- a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/gpio.h +++ b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/gpio.h @@ -4,6 +4,7 @@ #define __BASEBOARD_GPIO_H__ #ifndef __ACPI__ +#include #include # define MEM_CONFIG0 GPIO_139 @@ -24,8 +25,8 @@ #endif /* _ACPI__ */ /* These define the GPE, not the GPIO. */ -#define EC_SCI_GPI 3 /* AGPIO 22 -> GPE 3 */ -#define EC_SMI_GPI 10 /* AGPIO 6 -> GPE 10 */ -#define EC_WAKE_GPI 15 /* AGPIO 24 -> GPE 15 */ +#define EC_SCI_GPI GEVENT_3 /* AGPIO 22 -> GPE 3 */ +#define EC_SMI_GPI GEVENT_10 /* AGPIO 6 -> GPE 10 */ +#define EC_WAKE_GPI GEVENT_15 /* AGPIO 24 -> GPE 15 */ #endif /* __BASEBOARD_GPIO_H__ */ -- cgit v1.2.3