diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-04-23 15:28:34 +0800 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-07-28 15:07:28 +0000 |
commit | 92100c12ca1bc5f347ff41c1413f9db07c4d276c (patch) | |
tree | cbf4379cce962c550d32ab5dfd6d10dac7fb70db /arch/arm/mach-at91/setup.c | |
parent | 21d08b9d5536ac418bbce4f419fe2b528b7ddf31 (diff) | |
download | blackbird-op-linux-92100c12ca1bc5f347ff41c1413f9db07c4d276c.tar.gz blackbird-op-linux-92100c12ca1bc5f347ff41c1413f9db07c4d276c.zip |
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.c | 14 |
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 @@ struct at91_soc __initdata at91_boot_soc; +void __init at91_init_irq_default(void) +{ + at91_init_interrupts(at91_boot_soc.default_irq_priority); +} + +void __init at91_init_interrupts(unsigned int *priority) +{ + /* Initialize the AIC interrupt controller */ + at91_aic_init(priority); + + /* Enable GPIO interrupts */ + at91_gpio_irq_setup(); +} + static struct map_desc at91_io_desc __initdata = { .virtual = AT91_VA_BASE_SYS, .pfn = __phys_to_pfn(AT91_BASE_SYS), |