diff options
author | CHLin <CHLin56@nuvoton.com> | 2020-09-08 18:22:25 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-25 16:56:44 +0000 |
commit | cd2ce1213b08f8a2365407d39a005918190888b8 (patch) | |
tree | e93585bda2fdb8fcc85e0636ef98e9afa4fdd662 /chip/npcx/build.mk | |
parent | 6aaa7d4a1907b97787dd4b28e727394e3e5eadd6 (diff) | |
download | chrome-ec-cd2ce1213b08f8a2365407d39a005918190888b8.tar.gz |
npcx: add GPIO support for npcx9 and refactor GPIO driver
1. Add GPIO driver support for npcx9.
2. move the GPIO interrupt handler (MIWU) from gpio.h to gpio-npcx5.h,
gpio-npcx7.h, and gpio-npcx9.h separately.
Note: gpio-npcx7.h is a link to gpio-npcx5.h because almost all of the
source codes are the same.
BRANCH=none
BUG=b:165777478
TEST=pass "make buildall"
TEST=with related CLs, build and flash image on the npcx5/7/9 EVB and
yorp; verify GPIO functionality.
Signed-off-by: CHLin <CHLin56@nuvoton.com>
Change-Id: I665507f804ca3772f81f0ff8bd917a633bda2d11
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2402842
Tested-by: CH Lin <chlin56@nuvoton.com>
Reviewed-by: caveh jalali <caveh@chromium.org>
Commit-Queue: CH Lin <chlin56@nuvoton.com>
Diffstat (limited to 'chip/npcx/build.mk')
-rw-r--r-- | chip/npcx/build.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chip/npcx/build.mk b/chip/npcx/build.mk index f33089bc60..61137f5856 100644 --- a/chip/npcx/build.mk +++ b/chip/npcx/build.mk @@ -19,6 +19,7 @@ endif # Required chip modules chip-y=header.o clock.o gpio.o hwtimer.o system.o uart.o uartn.o sib.o chip-y+=system-$(CHIP_FAMILY).o +chip-y+=gpio-$(CHIP_FAMILY).o # Optional chip modules chip-$(CONFIG_ADC)+=adc.o |