2 * Copyright (C) 2008 STMicroelectronics
3 * Copyright (C) 2009 ST-Ericsson.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 #ifndef ASM_ARCH_IRQS_H
11 #define ASM_ARCH_IRQS_H
13 #define IRQ_LOCALTIMER 29
14 #define IRQ_LOCALWDOG 30
16 /* Shared Peripheral Interrupt (SHPI) */
17 #define IRQ_SHPI_START 32
20 * MTU0 preserved for now until plat-nomadik is taught not to use it. Don't
21 * add any other IRQs here, use the irqs-dbx500.h files.
23 #define IRQ_MTU0 (IRQ_SHPI_START + 4)
25 #define DBX500_NR_INTERNAL_IRQS 166
27 /* After chip-specific IRQ numbers we have the GPIO ones */
28 #define NOMADIK_NR_GPIO 288
29 #define NOMADIK_GPIO_TO_IRQ(gpio) ((gpio) + DBX500_NR_INTERNAL_IRQS)
30 #define NOMADIK_IRQ_TO_GPIO(irq) ((irq) - DBX500_NR_INTERNAL_IRQS)
31 #define IRQ_GPIO_END NOMADIK_GPIO_TO_IRQ(NOMADIK_NR_GPIO)
33 #define IRQ_SOC_START IRQ_GPIO_END
34 /* This will be overridden by SoC-specific irq headers */
35 #define IRQ_SOC_END IRQ_SOC_START
37 #include "irqs-db8500.h"
39 #define IRQ_BOARD_START IRQ_SOC_END
40 /* This will be overridden by board-specific irq headers */
41 #define IRQ_BOARD_END IRQ_BOARD_START
43 #ifdef CONFIG_MACH_MOP500
44 #include "irqs-board-mop500.h"
47 #define UX500_NR_IRQS IRQ_BOARD_END
49 #endif /* ASM_ARCH_IRQS_H */