summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/kahlee/variants/baseboard/gpio.c
diff options
context:
space:
mode:
authorDaniel Kurtz <djkurtz@chromium.org>2018-04-18 17:57:09 -0600
committerMartin Roth <martinroth@google.com>2018-04-26 21:17:33 +0000
commitd648730fe8d2f7cae85c52f05cbad157a8b2f24d (patch)
tree19cae8bb5bfbec6c0000a9432264e6f987199966 /src/mainboard/google/kahlee/variants/baseboard/gpio.c
parent75ed7781cc2a734ce1316f0b439e869ce9965338 (diff)
downloadcoreboot-d648730fe8d2f7cae85c52f05cbad157a8b2f24d.tar.gz
coreboot-d648730fe8d2f7cae85c52f05cbad157a8b2f24d.tar.bz2
coreboot-d648730fe8d2f7cae85c52f05cbad157a8b2f24d.zip
mainboard/google/kahlee: Enable EC wake on GPIO24
The grunt EC uses GPIO24 (EC_PCH_WAKE_L) to signal wake-up events to the AP. On Stoney, GPIO24 maps to GEVENT (GPE) 15. The kahlee EC uses GPIO2 (EC_PCH_WAKE_L) to signal wake-up events to the AP. On Stoney, GPIO2 maps to GEVENT (GPE) 8. BUG=b:78461678 TEST=powerd_dbus_suspend, tap any key on keyboard wakes from S3. TEST=sign in, EC: lidclose, EC: lidopen => system wakes from S3. Change-Id: Ib1809740837e686992ff70b81933159a5dff7595 Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Reviewed-on: https://review.coreboot.org/25816 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/mainboard/google/kahlee/variants/baseboard/gpio.c')
-rw-r--r--src/mainboard/google/kahlee/variants/baseboard/gpio.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/google/kahlee/variants/baseboard/gpio.c b/src/mainboard/google/kahlee/variants/baseboard/gpio.c
index 45f58fdd456d..12b0e42c4c92 100644
--- a/src/mainboard/google/kahlee/variants/baseboard/gpio.c
+++ b/src/mainboard/google/kahlee/variants/baseboard/gpio.c
@@ -20,6 +20,7 @@
#include <soc/southbridge.h>
#include <stdlib.h>
#include <boardid.h>
+#include <variant/gpio.h>
/*
* As a rule of thumb, GPIO pins used by coreboot should be initialized at
@@ -498,6 +499,14 @@ static const struct sci_source gpe_table[] = {
.level = SMI_SCI_EDG,
},
+ /* EC_PCH_WAKE_L */
+ {
+ .scimap = EC_WAKE_GPI,
+ .gpe = EC_WAKE_GPI,
+ .direction = SMI_SCI_LVL_LOW,
+ .level = SMI_SCI_EDG,
+ },
+
/* H1_PCH_INT_ODL */
{
.scimap = 22,