diff options
author | Haojian Zhuang <haojian.zhuang@marvell.com> | 2010-08-20 03:23:59 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2010-10-08 04:21:17 -0400 |
commit | 6ac6b817f3f4c23c5febd960d8deb343e13af5f3 (patch) | |
tree | 9d5642b9699e3d0dd8bcc2a1483a8ff3c31e4cf4 /arch/arm/mach-pxa/cm-x2xx.c | |
parent | 1b43d8eda71bc953c9005afd63952e0666169553 (diff) |
ARM: pxa: encode IRQ number into .nr_irqs
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Acked-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/cm-x2xx.c')
-rw-r--r-- | arch/arm/mach-pxa/cm-x2xx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/cm-x2xx.c b/arch/arm/mach-pxa/cm-x2xx.c index bff6e78f033d..ad40e7b141e0 100644 --- a/arch/arm/mach-pxa/cm-x2xx.c +++ b/arch/arm/mach-pxa/cm-x2xx.c | |||
@@ -33,6 +33,9 @@ | |||
33 | extern void cmx255_init(void); | 33 | extern void cmx255_init(void); |
34 | extern void cmx270_init(void); | 34 | extern void cmx270_init(void); |
35 | 35 | ||
36 | /* reserve IRQs for IT8152 */ | ||
37 | #define CMX2XX_NR_IRQS (IRQ_BOARD_START + 40) | ||
38 | |||
36 | /* virtual addresses for statically mapped regions */ | 39 | /* virtual addresses for statically mapped regions */ |
37 | #define CMX2XX_VIRT_BASE (0xe8000000) | 40 | #define CMX2XX_VIRT_BASE (0xe8000000) |
38 | #define CMX2XX_IT8152_VIRT (CMX2XX_VIRT_BASE) | 41 | #define CMX2XX_IT8152_VIRT (CMX2XX_VIRT_BASE) |
@@ -514,6 +517,7 @@ MACHINE_START(ARMCORE, "Compulab CM-X2XX") | |||
514 | .phys_io = 0x40000000, | 517 | .phys_io = 0x40000000, |
515 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | 518 | .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, |
516 | .map_io = cmx2xx_map_io, | 519 | .map_io = cmx2xx_map_io, |
520 | .nr_irqs = CMX2XX_NR_IRQS, | ||
517 | .init_irq = cmx2xx_init_irq, | 521 | .init_irq = cmx2xx_init_irq, |
518 | .timer = &pxa_timer, | 522 | .timer = &pxa_timer, |
519 | .init_machine = cmx2xx_init, | 523 | .init_machine = cmx2xx_init, |