mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-28 02:35:28 +00:00
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>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
fe150a64e9
commit
2d515091eb
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user