summaryrefslogtreecommitdiff
path: root/include/gpio_signal.h
diff options
context:
space:
mode:
authorCHLin <CHLIN56@nuvoton.com>2019-08-05 15:02:19 +0800
committerCommit Bot <commit-bot@chromium.org>2019-08-20 18:12:14 +0000
commit5040fdcc897188ad674b0503bf31d5c26f9f76d4 (patch)
tree646e5033fcf570b1a4d3267280ba2ee31813e747 /include/gpio_signal.h
parent8aaeb9fd05ab185a7807f3650e491d2c3042637a (diff)
downloadchrome-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_signal.h')
-rw-r--r--include/gpio_signal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gpio_signal.h b/include/gpio_signal.h
index da34f07b33..e863b7c415 100644
--- a/include/gpio_signal.h
+++ b/include/gpio_signal.h
@@ -16,6 +16,7 @@ enum gpio_signal {
};
#define IOEX(name, expin, flags) IOEX_##name,
+#define IOEX_INT(name, expin, flags, signal) IOEX_##name,
enum ioex_signal {
#include "gpio.wrap"