summaryrefslogtreecommitdiff
path: root/chip/stm32/usb_pd_phy.c
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2014-06-10 14:04:20 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-06-19 03:25:08 +0000
commit6c8e451ff01d046a953ee99a2911b46732361b2b (patch)
tree53b666bb98d03f0f10d9616fd7c851eb2c5d3392 /chip/stm32/usb_pd_phy.c
parent635a07ddadc47b649fa24bee6f94c65295eb844d (diff)
downloadchrome-ec-6c8e451ff01d046a953ee99a2911b46732361b2b.tar.gz
IRQ list support for enabling specific IRQs without common runtime
This adds back DECLARE_IRQ() support when building without common runtime. With this, we can enable only a subset of IRQs and avoid linking in other unused IRQ handlers. Note that after this change, all boards without common runtime need to have a ec.irqlist file. BUG=None TEST=Build Keyborg and check it still works. TEST=make buildall BRANCH=None Change-Id: If68062a803b9a78f383027a1625cf99eb3370d3f Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/203264 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip/stm32/usb_pd_phy.c')
-rw-r--r--chip/stm32/usb_pd_phy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/chip/stm32/usb_pd_phy.c b/chip/stm32/usb_pd_phy.c
index 051d2f0710..895d5dab9d 100644
--- a/chip/stm32/usb_pd_phy.c
+++ b/chip/stm32/usb_pd_phy.c
@@ -390,7 +390,9 @@ void pd_rx_handler(void)
/* trigger the analysis in the task */
pd_rx_event();
}
+#ifndef BOARD_ZINGER
DECLARE_IRQ(STM32_IRQ_COMP, pd_rx_handler, 1);
+#endif
/* --- Startup initialization --- */
void *pd_hw_init(void)