diff options
author | Duncan Laurie <dlaurie@google.com> | 2018-09-26 21:30:59 +0000 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-10-04 09:37:26 +0000 |
commit | 3f59f082e3c1a0ffe382580a31ebfa8b58fc2785 (patch) | |
tree | 5b0fe1e1fe74f977f0971175c626736a13937ba5 /src/mainboard/google/poppy/variants/nocturne/include | |
parent | ecf6531c47f77cae0e5d1349319b1f2c997e994f (diff) |
mb/google/nocturne: Define GPP_D17 as EC_SYNC_IRQ
Use GPIO GPP_D17 pin as the EC sync interrupt and provide this value
to the embedded controller to be exported to the OS.
This interface was tested on a reworked Nocturne board with modified
EC and a modified kernel driver to ensure that the interrupt asserts
as expected and can be used by the kernel driver.
Change-Id: Ie2b33692367b5d9ecc2b128180d8cfe4f6b347b1
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://review.coreboot.org/28759
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/poppy/variants/nocturne/include')
-rw-r--r-- | src/mainboard/google/poppy/variants/nocturne/include/variant/ec.h | 3 | ||||
-rw-r--r-- | src/mainboard/google/poppy/variants/nocturne/include/variant/gpio.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/poppy/variants/nocturne/include/variant/ec.h b/src/mainboard/google/poppy/variants/nocturne/include/variant/ec.h index 7e168010cf..ba481e4542 100644 --- a/src/mainboard/google/poppy/variants/nocturne/include/variant/ec.h +++ b/src/mainboard/google/poppy/variants/nocturne/include/variant/ec.h @@ -79,4 +79,7 @@ #define EC_ENABLE_MKBP_DEVICE /* Enable cros_ec_keyb device */ #define EC_ENABLE_CBAS_DEVICE /* Enable "Base Attached Switch" device */ +/* Enable EC sync interrupt, EC_SYNC_IRQ is defined in variant/gpio.h */ +#define EC_ENABLE_SYNC_IRQ + #endif /* __MAINBOARD_EC_H__ */ diff --git a/src/mainboard/google/poppy/variants/nocturne/include/variant/gpio.h b/src/mainboard/google/poppy/variants/nocturne/include/variant/gpio.h index 0853893d40..fb7ad1abb4 100644 --- a/src/mainboard/google/poppy/variants/nocturne/include/variant/gpio.h +++ b/src/mainboard/google/poppy/variants/nocturne/include/variant/gpio.h @@ -34,6 +34,9 @@ /* EC wake is LAN_WAKE# which is a special DeepSX wake pin */ #define GPE_EC_WAKE GPE0_LAN_WAK +/* EC sync irq is GPP_D12 */ +#define EC_SYNC_IRQ GPP_D17_IRQ + /* eSPI virtual wire reporting */ #define EC_SCI_GPI GPE0_ESPI |