diff options
author | Cyril Chemparathy <cyril@ti.com> | 2010-05-07 17:06:37 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-05-13 13:05:28 -0400 |
commit | bd808947040ba53b2b0e52dde598a9414fb27bba (patch) | |
tree | 868535ab01e9a7a754d255c77b2ab839f8b4f3ca /arch/arm/mach-davinci/board-da830-evm.c | |
parent | e4c822c7e98cdda78b10a696b030fc20b22dcab4 (diff) |
Davinci: aintc/cpintc - use ioremap()
This patch implements the following:
- interrupt initialization uses ioremap() instead of passing a virtual address
via davinci_soc_info.
- machine definitions directly point to cp_intc_init() or davinci_irq_init()
- davinci_intc_type and davinci_intc_base now get initialized in controller
specific init functions instead of davinci_common_init()
- minor fix in davinci_irq_init() to use intc_irq_num instead of
DAVINCI_N_AINTC_IRQ
Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/board-da830-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-da830-evm.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arm/mach-davinci/board-da830-evm.c b/arch/arm/mach-davinci/board-da830-evm.c index 8f079d2f1af9..212d97084bd7 100644 --- a/arch/arm/mach-davinci/board-da830-evm.c +++ b/arch/arm/mach-davinci/board-da830-evm.c | |||
@@ -561,14 +561,6 @@ static int __init da830_evm_console_init(void) | |||
561 | console_initcall(da830_evm_console_init); | 561 | console_initcall(da830_evm_console_init); |
562 | #endif | 562 | #endif |
563 | 563 | ||
564 | static __init void da830_evm_irq_init(void) | ||
565 | { | ||
566 | struct davinci_soc_info *soc_info = &davinci_soc_info; | ||
567 | |||
568 | cp_intc_init((void __iomem *)DA8XX_CP_INTC_VIRT, DA830_N_CP_INTC_IRQ, | ||
569 | soc_info->intc_irq_prios, NULL); | ||
570 | } | ||
571 | |||
572 | static void __init da830_evm_map_io(void) | 564 | static void __init da830_evm_map_io(void) |
573 | { | 565 | { |
574 | da830_init(); | 566 | da830_init(); |
@@ -579,7 +571,7 @@ MACHINE_START(DAVINCI_DA830_EVM, "DaVinci DA830/OMAP-L137 EVM") | |||
579 | .io_pg_offst = (__IO_ADDRESS(IO_PHYS) >> 18) & 0xfffc, | 571 | .io_pg_offst = (__IO_ADDRESS(IO_PHYS) >> 18) & 0xfffc, |
580 | .boot_params = (DA8XX_DDR_BASE + 0x100), | 572 | .boot_params = (DA8XX_DDR_BASE + 0x100), |
581 | .map_io = da830_evm_map_io, | 573 | .map_io = da830_evm_map_io, |
582 | .init_irq = da830_evm_irq_init, | 574 | .init_irq = cp_intc_init, |
583 | .timer = &davinci_timer, | 575 | .timer = &davinci_timer, |
584 | .init_machine = da830_evm_init, | 576 | .init_machine = da830_evm_init, |
585 | MACHINE_END | 577 | MACHINE_END |