aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/setup.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-04-23 03:28:34 -0400
committerArnd Bergmann <arnd@arndb.de>2011-07-28 11:07:28 -0400
commit92100c12ca1bc5f347ff41c1413f9db07c4d276c (patch)
treecbf4379cce962c550d32ab5dfd6d10dac7fb70db /arch/arm/mach-at91/setup.c
parent21d08b9d5536ac418bbce4f419fe2b528b7ddf31 (diff)
at91: factorize at91 interrupts init to soc
they are the same except the default priority Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/setup.c')
-rw-r--r--arch/arm/mach-at91/setup.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c
index 096eb9805212..8962d9a1a8f6 100644
--- a/arch/arm/mach-at91/setup.c
+++ b/arch/arm/mach-at91/setup.c
@@ -18,6 +18,20 @@
18 18
19struct at91_soc __initdata at91_boot_soc; 19struct at91_soc __initdata at91_boot_soc;
20 20
21void __init at91_init_irq_default(void)
22{
23 at91_init_interrupts(at91_boot_soc.default_irq_priority);
24}
25
26void __init at91_init_interrupts(unsigned int *priority)
27{
28 /* Initialize the AIC interrupt controller */
29 at91_aic_init(priority);
30
31 /* Enable GPIO interrupts */
32 at91_gpio_irq_setup();
33}
34
21static struct map_desc at91_io_desc __initdata = { 35static struct map_desc at91_io_desc __initdata = {
22 .virtual = AT91_VA_BASE_SYS, 36 .virtual = AT91_VA_BASE_SYS,
23 .pfn = __phys_to_pfn(AT91_BASE_SYS), 37 .pfn = __phys_to_pfn(AT91_BASE_SYS),