From 2d515091ebf52f920e38d6d5fcdc7ebe3fc6f59f Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Wed, 12 Aug 2015 11:38:13 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/293013 Reviewed-by: Aaron Durbin --- chip/npcx/gpio.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- cgit v1.2.1