diff options
author | CHLin <CHLIN56@nuvoton.com> | 2019-08-05 15:02:19 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-20 18:12:14 +0000 |
commit | 5040fdcc897188ad674b0503bf31d5c26f9f76d4 (patch) | |
tree | 646e5033fcf570b1a4d3267280ba2ee31813e747 /include/gpio.wrap | |
parent | 8aaeb9fd05ab185a7807f3650e491d2c3042637a (diff) | |
download | chrome-ec-5040fdcc897188ad674b0503bf31d5c26f9f76d4.tar.gz |
IO Expander: add the interrupt support to IOEX framework
This CL creates interfaces which bring the IOEX framework to support
interrupt feature.
To declare an IOEX IO which supports the interrupt function, file its
declaration in gpio.inc with the format:
IOEX_INT(name, expin, flags, signal)
Note: like GPIO, all IOEX IOs with interrupt handlers must be declared
at the top of the IOEX's declaration in the gpio.inc
The following two APIs are added to enable/disable each IOEX IO's
interrupt function:
1. ioex_enable_interrupt
2. ioex_disable_interrupt
BRANCH=none
BUG=none
TEST=No error for "make buildall"
TEST=Apply this and related CLs, manually test each IO pins; make sure
each pin's interrupt handler is correctly executed.
Change-Id: Icbf54c09120e37b68c647c884cd6aa28d9313167
Signed-off-by: CHLin <CHLIN56@nuvoton.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1734947
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Tested-by: CH Lin <chlin56@nuvoton.com>
Commit-Queue: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'include/gpio.wrap')
-rw-r--r-- | include/gpio.wrap | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpio.wrap b/include/gpio.wrap index b68621d49c..bc0b47f989 100644 --- a/include/gpio.wrap +++ b/include/gpio.wrap @@ -136,6 +136,10 @@ #define IOEX(name, expin, flags) #endif +#ifndef IOEX_INT +#define IOEX_INT(name, expin, flags, signal) +#endif + #include "gpio.inc" /* @@ -155,3 +159,4 @@ #undef UNIMPLEMENTED_RW #undef IOEX +#undef IOEX_INT |