summaryrefslogtreecommitdiff
path: root/chip/lm4/registers.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2011-12-12 14:03:49 -0800
committerRandall Spangler <rspangler@chromium.org>2011-12-12 14:23:04 -0800
commit1ce694189a847727e8eca53fbc324f67b92238e5 (patch)
tree44d08152e97fad7c73986ab3cdf3e87f5caaaa43 /chip/lm4/registers.h
parent70c3e30b633b530acb913a99d7cb602c9e8baf99 (diff)
downloadchrome-ec-1ce694189a847727e8eca53fbc324f67b92238e5.tar.gz
Add IRQ constants, and task functions to enable/disable/trigger IRQs.
The constants don't work with the DECLARE_IRQ() macro yet, because it relies on stringizing the IRQ number. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=none TEST=none Change-Id: Ie6ddecd79e28c319b095089131579ba994a17da3 (cherry picked from commit e24904644a977f2618f51629cc066b93a3d53595)
Diffstat (limited to 'chip/lm4/registers.h')
-rw-r--r--chip/lm4/registers.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/chip/lm4/registers.h b/chip/lm4/registers.h
index 91fc2f90be..8038ac9b4b 100644
--- a/chip/lm4/registers.h
+++ b/chip/lm4/registers.h
@@ -177,6 +177,20 @@ static inline int lm4_lpc_addr(int ch, int offset)
#define LM4_NVIC_PRI(x) LM4REG(0xe000e400 + 4 * (x))
#define LM4_NVIC_APINT LM4REG(0xe000ed0c)
#define LM4_NVIC_SWTRIG LM4REG(0xe000ef00)
+/* IRQ numbers */
+#define LM4_IRQ_GPIOD 3
+#define LM4_IRQ_UART0 5
+#define LM4_IRQ_UART1 6
+#define LM4_IRQ_I2C0 8
+#define LM4_IRQ_WATCHDOG 18
+#define LM4_IRQ_I2C1 37
+#define LM4_IRQ_I2C2 68
+#define LM4_IRQ_I2C3 69
+#define LM4_IRQ_TIMERW0A 94
+#define LM4_IRQ_TIMERW1A 96
+#define LM4_IRQ_LPC 108
+#define LM4_IRQ_I2C4 109
+#define LM4_IRQ_I2C5 110
#define LM4_SCB_SYSCTRL LM4REG(0xe000ed10)