summaryrefslogtreecommitdiff
path: root/src/mainboard/google/glados/ec.h
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-08-13 03:06:02 -0500
committerAaron Durbin <adurbin@chromium.org>2015-08-19 14:04:03 +0000
commita537f9a2ecfd2753f06a5707af965658e21dd7e1 (patch)
treedf12f30ccffa7440e0897cd89a13ea7f9f71c60e /src/mainboard/google/glados/ec.h
parentd3a36b8a4611c3fbafc73c4d178315ccf7f9c7f7 (diff)
glados: use macros for magic numbers in ASL
The skylake SoC code now has macros for the previously hard-code numbers for IRQs and GPEs. Switch over to using those as they bring a little more clarity. BUG=chrome-os-partner:43522 BRANCH=None TEST=Built and booted glados. Original-Change-Id: Ic8fcc59d680cdddec9dfbc3bf679731f6d786793 Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/293411 Original-Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Change-Id: I594907005372100a3c9d17dda9d17769844ad272 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/11234 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard/google/glados/ec.h')
-rw-r--r--src/mainboard/google/glados/ec.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mainboard/google/glados/ec.h b/src/mainboard/google/glados/ec.h
index d43b57ca45..bfe4a110b5 100644
--- a/src/mainboard/google/glados/ec.h
+++ b/src/mainboard/google/glados/ec.h
@@ -23,11 +23,10 @@
#include <ec/google/chromeec/ec_commands.h>
#include <soc/gpio.h>
+#include <soc/gpe.h>
-/* GPP_E16 is EC_SCI_L, however the EC_SCI_GPI needs to be a bit
- * number relative to the GPE0 block. GPP_E is routed as the dword 2
- * in the GPE0 block. Therefore, 16 + 2 * 32 = 80. */
-#define EC_SCI_GPI 80
+/* GPP_E16 is EC_SCI_L. GPP_E group is routed to dword 2 in the GPE0 block. */
+#define EC_SCI_GPI GPE0_DW2_16
#define EC_SMI_GPI GPP_E15
#define MAINBOARD_EC_SCI_EVENTS \