2 * arch/arm/mach-at91/at91x40.c
4 * (C) Copyright 2007, Greg Ungerer <gerg@snapgear.com>
5 * Copyright (C) 2005 SAN People
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
13 #include <linux/kernel.h>
14 #include <linux/init.h>
15 #include <linux/irq.h>
16 #include <asm/mach/arch.h>
17 #include <asm/arch/at91x40.h>
18 #include <asm/arch/at91_st.h>
22 * This is used in the gpio code, stub locally.
24 int clk_enable(struct clk *clk)
29 void __init at91x40_initialize(unsigned long main_clock)
31 at91_extern_irq = (1 << AT91X40_ID_IRQ0) | (1 << AT91X40_ID_IRQ1)
32 | (1 << AT91X40_ID_IRQ2);
36 * The default interrupt priority levels (0 = lowest, 7 = highest).
38 static unsigned int at91x40_default_irq_priority[NR_AIC_IRQS] __initdata = {
39 7, /* Advanced Interrupt Controller (FIQ) */
40 0, /* System Peripherals */
43 2, /* Timer Counter 0 */
44 2, /* Timer Counter 1 */
45 2, /* Timer Counter 2 */
46 0, /* Watchdog timer */
47 0, /* Parallel IO Controller A */
55 0, /* External IRQ0 */
56 0, /* External IRQ1 */
57 0, /* External IRQ2 */
60 void __init at91x40_init_interrupts(unsigned int priority[NR_AIC_IRQS])
63 priority = at91x40_default_irq_priority;
65 at91_aic_init(priority);