summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2015-08-12 11:38:13 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-08-12 21:57:00 +0000
commit2d515091ebf52f920e38d6d5fcdc7ebe3fc6f59f (patch)
tree6bdc33028397345f5402c237a061cb935c679646
parentfe150a64e972dc38c21fac4dc60f47eab1948d9a (diff)
downloadchrome-ec-2d515091ebf52f920e38d6d5fcdc7ebe3fc6f59f.tar.gz
npcx_evb_arm: Fix build
npcx GPIO code calls out to an LPC function, which isn't defined on platforms without LPC support. BUG=chromium:520207 TEST=`make buildall -j` BRANCH=None Change-Id: I80c0d08fea4a2621df9646926959fc48af52a15a Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/293013 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--chip/npcx/gpio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/npcx/gpio.c b/chip/npcx/gpio.c
index 7192403e82..cb8e7348a6 100644
--- a/chip/npcx/gpio.c
+++ b/chip/npcx/gpio.c
@@ -687,9 +687,11 @@ void _irq_func(void) \
/* If we need to handle the other type interrupts except GPIO, add code here */
void __gpio_wk0efgh_interrupt(void)
{
+#ifdef CONFIG_LPC
if (IS_BIT_SET(NPCX_WKPND(MIWU_TABLE_0 , MIWU_GROUP_5),7))
lpc_lreset_pltrst_handler();
else
+#endif
gpio_interrupt(NPCX_IRQ_WKINTEFGH_0);
}