summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorChris Wang <chris.wang@amd.corp-partner.google.com>2019-08-16 18:38:19 +0800
committerMartin Roth <martinroth@google.com>2019-08-21 02:12:52 +0000
commit2d9a35a8be7712ded7fd07d43b2df8229a2407a5 (patch)
tree8a4274561efc4d3e124550abb58f8c2a27b285bf /src/mainboard/google
parentf0b1c1f9c3fc0f056f27a2f4d9a23ddda585bbb2 (diff)
mb/google/kahlee/treeya: Use GPIO_10 for EC_SYNC_IRQ
Use AGPIO 10 as the EC sync interrupt for MKBP events for sensor data. Reference to Aleena project. BUG=b:135551210 BRANCH=grunt TEST=emerge-grunt coreboot Signed-off-by: Chris Wang <chris.wang@amd.corp-partner.google.com> Change-Id: Ie0b719ebce90710bca2109b7ff255e19329f9cac Reviewed-on: https://review.coreboot.org/c/coreboot/+/34902 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/kahlee/variants/treeya/include/variant/ec.h6
-rw-r--r--src/mainboard/google/kahlee/variants/treeya/include/variant/gpio.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/google/kahlee/variants/treeya/include/variant/ec.h b/src/mainboard/google/kahlee/variants/treeya/include/variant/ec.h
index 73e07aef30..4a1c7fca7b 100644
--- a/src/mainboard/google/kahlee/variants/treeya/include/variant/ec.h
+++ b/src/mainboard/google/kahlee/variants/treeya/include/variant/ec.h
@@ -20,3 +20,9 @@
/* Enable Tablet switch */
#define EC_ENABLE_TBMC_DEVICE
+
+/*
+ * Enable EC sync interrupt via GPIO controller, EC_SYNC_IRQ is defined in
+ * variant/gpio.h
+ */
+#define EC_ENABLE_SYNC_IRQ_GPIO
diff --git a/src/mainboard/google/kahlee/variants/treeya/include/variant/gpio.h b/src/mainboard/google/kahlee/variants/treeya/include/variant/gpio.h
index 5a6b54044f..3ddabb1f27 100644
--- a/src/mainboard/google/kahlee/variants/treeya/include/variant/gpio.h
+++ b/src/mainboard/google/kahlee/variants/treeya/include/variant/gpio.h
@@ -14,3 +14,6 @@
*/
#include <baseboard/gpio.h>
+
+/* EC sync irq is AGPIO 10 */
+#define EC_SYNC_IRQ 10