aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-s3c64xx/include
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-10-21 09:06:57 -0400
committerBen Dooks <ben-linux@fluff.org>2008-12-15 16:52:51 -0500
commitf982dc5321848ca6150a7a2c2bb3e28bddcf5ebe (patch)
treea854a69febfa17e3503da09d3c8d58384c678c82 /arch/arm/plat-s3c64xx/include
parente550ae741663e4708dcdad3fc392db156189c77c (diff)
[ARM] S3C64XX: Map timer memory and interrupts
Add the physical to virtual memory mapping and the necessary interrupt demuxing for the PWM timer blocks. Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-s3c64xx/include')
-rw-r--r--arch/arm/plat-s3c64xx/include/plat/irqs.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/arch/arm/plat-s3c64xx/include/plat/irqs.h b/arch/arm/plat-s3c64xx/include/plat/irqs.h
index 3564dfbec85a..8bdfb27425e6 100644
--- a/arch/arm/plat-s3c64xx/include/plat/irqs.h
+++ b/arch/arm/plat-s3c64xx/include/plat/irqs.h
@@ -89,12 +89,12 @@
89#define IRQ_ARM_DMA S3C64XX_IRQ_VIC0(20) 89#define IRQ_ARM_DMA S3C64XX_IRQ_VIC0(20)
90#define IRQ_ARM_DMAS S3C64XX_IRQ_VIC0(21) 90#define IRQ_ARM_DMAS S3C64XX_IRQ_VIC0(21)
91#define IRQ_KEYPAD S3C64XX_IRQ_VIC0(22) 91#define IRQ_KEYPAD S3C64XX_IRQ_VIC0(22)
92#define IRQ_TIMER0 S3C64XX_IRQ_VIC0(23) 92#define IRQ_TIMER0_VIC S3C64XX_IRQ_VIC0(23)
93#define IRQ_TIMER1 S3C64XX_IRQ_VIC0(24) 93#define IRQ_TIMER1_VIC S3C64XX_IRQ_VIC0(24)
94#define IRQ_TIMER2 S3C64XX_IRQ_VIC0(25) 94#define IRQ_TIMER2_VIC S3C64XX_IRQ_VIC0(25)
95#define IRQ_WDT S3C64XX_IRQ_VIC0(26) 95#define IRQ_WDT S3C64XX_IRQ_VIC0(26)
96#define IRQ_TIMER3 S3C64XX_IRQ_VIC0(27) 96#define IRQ_TIMER3_VIC S3C64XX_IRQ_VIC0(27)
97#define IRQ_TIMER4 S3C64XX_IRQ_VIC0(28) 97#define IRQ_TIMER4_VIC S3C64XX_IRQ_VIC0(28)
98#define IRQ_LCD_FIFO S3C64XX_IRQ_VIC0(29) 98#define IRQ_LCD_FIFO S3C64XX_IRQ_VIC0(29)
99#define IRQ_LCD_VSYNC S3C64XX_IRQ_VIC0(30) 99#define IRQ_LCD_VSYNC S3C64XX_IRQ_VIC0(30)
100#define IRQ_LCD_SYSTEM S3C64XX_IRQ_VIC0(31) 100#define IRQ_LCD_SYSTEM S3C64XX_IRQ_VIC0(31)
@@ -136,11 +136,19 @@
136#define IRQ_TC IRQ_PENDN 136#define IRQ_TC IRQ_PENDN
137#define IRQ_ADC S3C64XX_IRQ_VIC1(31) 137#define IRQ_ADC S3C64XX_IRQ_VIC1(31)
138 138
139#define S3C64XX_TIMER_IRQ(x) S3C_IRQ(64 + (x))
140
141#define IRQ_TIMER0 S3C64XX_TIMER_IRQ(0)
142#define IRQ_TIMER1 S3C64XX_TIMER_IRQ(1)
143#define IRQ_TIMER2 S3C64XX_TIMER_IRQ(2)
144#define IRQ_TIMER3 S3C64XX_TIMER_IRQ(3)
145#define IRQ_TIMER4 S3C64XX_TIMER_IRQ(4)
146
139/* Since the IRQ_EINT(x) are a linear mapping on current s3c64xx series 147/* Since the IRQ_EINT(x) are a linear mapping on current s3c64xx series
140 * we just defined them as an IRQ_EINT(x) macro from S3C_IRQ_EINT_BASE 148 * we just defined them as an IRQ_EINT(x) macro from S3C_IRQ_EINT_BASE
141 * which we place after the pair of VICs. */ 149 * which we place after the pair of VICs. */
142 150
143#define S3C_IRQ_EINT_BASE S3C_IRQ(64) 151#define S3C_IRQ_EINT_BASE S3C_IRQ(64+5)
144 152
145#define S3C_EINT(x) ((x) + S3C_IRQ_EINT_BASE) 153#define S3C_EINT(x) ((x) + S3C_IRQ_EINT_BASE)
146 154