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>
This commit is contained in:
committed by
Arnd Bergmann
parent
21d08b9d55
commit
92100c12ca
@@ -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),
|
||||
|
Reference in New Issue
Block a user