import cbaos v0.1
[cbaos.git] / arch / arm7tdmi / mach-lpc21xx / include / lpc21xx_regs.h
blobe81b7a98a6c9f7b983b031b5c137cb3346a7b7ab
1 #ifndef _LPC21XX_REGS_
2 #define _LPC21XX_REGS_
4 /* include what comes from KEIL */
5 #include <mach/LPC21xx.H>
6 /* This is a bit problematic: there are a bunch of include files that are
7 * quite similar. Maybe I should merge them. TODO
8 */
10 /* PCONP bits for lpc213x */
11 #define PCONP_TIM0 (1<<1)
12 #define PCONP_TIM1 (1<<2)
13 #define PCONP_UART0 (1<<3)
14 #define PCONP_UART1 (1<<4)
15 #define PCONP_PWM0 (1<<5)
17 #define PCONP_I2C0 (1<<7)
18 #define PCONP_SPI0 (1<<8)
19 #define PCONP_RTC (1<<9)
20 #define PCONP_SPI1 (1<<10)
22 #define PCONP_AD0 (1<<12)
24 #define PCONP_I2C1 (1<<19)
25 #define PCONP_AD1 (1<<20)
27 enum LPC21XX_IRQ {
28 IRQ_WDT = 0,
29 IRQ_ARMCore0 = 2,
30 IRQ_ARMCore1 = 3,
31 IRQ_TIMER0 = 4,
32 IRQ_TIMER1 = 5,
33 IRQ_UART0 = 6,
34 IRQ_UART1 = 7,
35 IRQ_PWM0 = 8,
36 IRQ_I2C0 = 9,
37 IRQ_SPI0 = 10,
38 IRQ_SPI1 = 11,
39 IRQ_PLL = 12,
40 IRQ_RTC = 13,
41 IRQ_EINT0 = 14,
42 IRQ_EINT1 = 15,
43 IRQ_EINT2 = 16,
44 IRQ_EINT3 = 17,
45 IRQ_AD0 = 18,
46 IRQ_I2C1 = 19,
47 IRQ_BOD = 20,
48 IRQ_AD1 = 21,
51 #endif