2 * mach-nomadik/include/mach/irqs.h
4 * Copyright (C) ST Microelectronics
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 #ifndef __ASM_ARCH_IRQS_H
21 #define __ASM_ARCH_IRQS_H
23 #include <mach/hardware.h>
25 #define IRQ_VIC_START 0 /* first VIC interrupt is 0 */
28 * Interrupt numbers generic for all Nomadik Chip cuts
30 #define IRQ_WATCHDOG 0
40 #define IRQ_RTC_RTT 10
44 #define IRQ_CLCD_MDIF 14
46 #define IRQ_PWRFAIL 16
54 #define IRQ_SVA_IT0 24
55 #define IRQ_SVA_IT1 25
56 #define IRQ_SAA_IT0 26
57 #define IRQ_SAA_IT1 27
69 #define NOMADIK_SOC_NR_IRQS 64
71 /* After chip-specific IRQ numbers we have the GPIO ones */
72 #define NOMADIK_NR_GPIO 128 /* last 4 not wired to pins */
73 #define NOMADIK_GPIO_TO_IRQ(gpio) ((gpio) + NOMADIK_SOC_NR_IRQS)
74 #define NOMADIK_IRQ_TO_GPIO(irq) ((irq) - NOMADIK_SOC_NR_IRQS)
75 #define NR_IRQS NOMADIK_GPIO_TO_IRQ(NOMADIK_NR_GPIO)
77 /* Following two are used by entry_macro.S, to access our dual-vic */
78 #define VIC_REG_IRQSR0 0
79 #define VIC_REG_IRQSR1 0x20
81 #endif /* __ASM_ARCH_IRQS_H */