From c4ba0f4cbdd28a8e8339085f56340a5f880014c2 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Thu, 25 Oct 2018 14:35:21 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/29278 Reviewed-by: Furquan Shaikh Reviewed-by: Karthik Ramasubramanian Tested-by: build bot (Jenkins) --- src/mainboard/google/octopus/variants/bobba/include/variant/ec.h | 3 +++ src/mainboard/google/octopus/variants/bobba/include/variant/gpio.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/mainboard/google') 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 +/* 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 +/* EC sync irq is GPP_134_IRQ */ +#define EC_SYNC_IRQ GPIO_134_IRQ + #endif /* MAINBOARD_GPIO_H */ -- cgit v1.2.3