summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Granata <egranata@chromium.org>2018-10-25 14:35:21 -0700
committerPatrick Georgi <pgeorgi@google.com>2018-11-05 09:05:24 +0000
commitc4ba0f4cbdd28a8e8339085f56340a5f880014c2 (patch)
tree67b1bd77aa8272c3d3c5aa781b44efbe07e98bdc
parentae4eee17dd77f850fbaf34b28c2e4f908a80f22d (diff)
downloadcoreboot-c4ba0f4cbdd28a8e8339085f56340a5f880014c2.tar.xz
mb/google/octopus/var/bobba: Define GPIO_134 as EC_SYNC_IRQ
Use GPIO_134 as the EC sync interrupt and provide this value to the embedded controller to be exported to the OS. BRANCH=none BUG=crbug:896347, b:118443377 CQ-DEPEND=CL:1298699 TEST=verify sensor events coming in on a reworked board with companion EC and kernel patches Change-Id: I41333cabe97bc8b0d59e19d84366f2ea2a59e026 Signed-off-by: Enrico Granata <egranata@chromium.org> Reviewed-on: https://review.coreboot.org/29278 Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/mainboard/google/octopus/variants/bobba/include/variant/ec.h3
-rw-r--r--src/mainboard/google/octopus/variants/bobba/include/variant/gpio.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/octopus/variants/bobba/include/variant/ec.h b/src/mainboard/google/octopus/variants/bobba/include/variant/ec.h
index 16f931b6cd..b75794a124 100644
--- a/src/mainboard/google/octopus/variants/bobba/include/variant/ec.h
+++ b/src/mainboard/google/octopus/variants/bobba/include/variant/ec.h
@@ -18,4 +18,7 @@
#include <baseboard/ec.h>
+/* Enable EC sync interrupt, EC_SYNC_IRQ is defined in variant/gpio.h */
+#define EC_ENABLE_SYNC_IRQ
+
#endif
diff --git a/src/mainboard/google/octopus/variants/bobba/include/variant/gpio.h b/src/mainboard/google/octopus/variants/bobba/include/variant/gpio.h
index 1fd1e11716..a59bbf4a9e 100644
--- a/src/mainboard/google/octopus/variants/bobba/include/variant/gpio.h
+++ b/src/mainboard/google/octopus/variants/bobba/include/variant/gpio.h
@@ -18,4 +18,7 @@
#include <baseboard/gpio.h>
+/* EC sync irq is GPP_134_IRQ */
+#define EC_SYNC_IRQ GPIO_134_IRQ
+
#endif /* MAINBOARD_GPIO_H */