diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2012-12-17 09:51:08 +0100 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2013-01-10 20:23:41 +0100 |
commit | efe104275960deccee71ff44c1bba38c997553f3 (patch) | |
tree | de29b6acd92fe535aa3b6f8c97bdf8c266e41b0c /firmware/export/rk27xx.h | |
parent | 15818bef5525b54dfd8d35255270f0d6ac0b33d4 (diff) |
rk27xx: substitute magic constants with meaningful names for INTC
Change-Id: Ic93114db351a9940a53d0c1df6439d82ada044e1
Diffstat (limited to 'firmware/export/rk27xx.h')
-rw-r--r-- | firmware/export/rk27xx.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/firmware/export/rk27xx.h b/firmware/export/rk27xx.h index 6f5859f6f8..58b3fe8166 100644 --- a/firmware/export/rk27xx.h +++ b/firmware/export/rk27xx.h @@ -489,6 +489,39 @@ #define INTC_ICCR (*(volatile unsigned long *)(AHB0_INTC + 0x118)) #define INTC_ISCR (*(volatile unsigned long *)(AHB0_INTC + 0x11C)) +#define IRQ_ARM_UART0 (1<<0) +#define IRQ_ARM_UART1 (1<<1) +#define IRQ_ARM_TIMER0 (1<<2) +#define IRQ_ARM_TIMER1 (1<<3) +#define IRQ_ARM_TIMER2 (1<<4) +#define IRQ_ARM_GPIO0 (1<<5) +#define IRQ_ARM_SW (1<<6) +#define IRQ_ARM_MAILBOX (1<<7) +#define IRQ_ARM_RTC (1<<8) +#define IRQ_ARM_SCU (1<<9) +#define IRQ_ARM_SD (1<<10) +#define IRQ_ARM_SPI (1<<11) +#define IRQ_ARM_HDMA (1<<12) +#define IRQ_ARM_A2A (1<<13) +#define IRQ_ARM_I2C (1<<14) +#define IRQ_ARM_I2S (1<<15) +#define IRQ_ARM_UDC (1<<16) +#define IRQ_ARM_UHC (1<<17) +#define IRQ_ARM_PWM0 (1<<18) +#define IRQ_ARM_PWM1 (1<<19) +#define IRQ_ARM_PWM2 (1<<20) +#define IRQ_ARM_PWM3 (1<<21) +#define IRQ_ARM_ADC (1<<22) +#define IRQ_ARM_GPIO1 (1<<23) +#define IRQ_ARM_VIP (1<<24) +#define IRQ_ARM_DWDMA (1<<25) +#define IRQ_ARM_NANDC (1<<26) +#define IRQ_ARM_LCDC (1<<27) +#define IRQ_ARM_DSP (1<<28) +#define IRQ_ARM_SW1 (1<<29) +#define IRQ_ARM_SW2 (1<<30) +#define IRQ_ARM_SW3 (1<<31) + #define INTC_TEST (*(volatile unsigned long *)(AHB0_INTC + 0x124)) /* Bus arbiter module */ |