summaryrefslogtreecommitdiff
path: root/chip/it83xx/lpc.c
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-03-29 11:02:00 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-03-29 19:51:47 -0700
commit109921e29d60c2eafa46147b296db558887be9a9 (patch)
tree56993eee341b40598cc794871f86af398a4b40d4 /chip/it83xx/lpc.c
parente0b7137f47bb6902a51290c97fabeadf21276d6c (diff)
downloadchrome-ec-109921e29d60c2eafa46147b296db558887be9a9.tar.gz
ite: exclude keyboard interrupts if no keyboard task
When building the `tests` target for a specific board that uses the ite EC chip, it will fail to find the lpc_kbc_obe_interrupt function. Adding #define around code similar to npcx set up. This is needed because the unibuild system uses the tests target when compiling chromeos-ec. BRANCH=none BUG=b:77274422 TEST=Can now successfully `make BOARD=bip tests` Change-Id: I971aebe1667eb90e8ccccbe6047c5aa959c76c4b Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/986634 Reviewed-by: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'chip/it83xx/lpc.c')
-rw-r--r--chip/it83xx/lpc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/chip/it83xx/lpc.c b/chip/it83xx/lpc.c
index bde0ebf0c1..eb46cbaa29 100644
--- a/chip/it83xx/lpc.c
+++ b/chip/it83xx/lpc.c
@@ -372,6 +372,7 @@ int lpc_get_pltrst_asserted(void)
}
#endif
+#ifdef HAS_TASK_KEYPROTO
/* KBC and PMC control modules */
void lpc_kbc_ibf_interrupt(void)
{
@@ -385,9 +386,7 @@ void lpc_kbc_ibf_interrupt(void)
task_clear_pending_irq(IT83XX_IRQ_KBC_IN);
-#ifdef HAS_TASK_KEYPROTO
task_wake(TASK_ID_KEYPROTO);
-#endif
}
void lpc_kbc_obe_interrupt(void)
@@ -404,10 +403,9 @@ void lpc_kbc_obe_interrupt(void)
}
#endif
-#ifdef HAS_TASK_KEYPROTO
task_wake(TASK_ID_KEYPROTO);
-#endif
}
+#endif /* HAS_TASK_KEYPROTO */
void pm1_ibf_interrupt(void)
{