| Srinidhi Kasagar | ffae4e0 | 2009-11-28 08:10:40 +0100 | [diff] [blame] | 1 | /* | 
|  | 2 | *  Copyright (C) 2008 STMicroelectronics | 
|  | 3 | *  Copyright (C) 2009 ST-Ericsson. | 
|  | 4 | * | 
|  | 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. | 
|  | 9 | */ | 
|  | 10 | #ifndef ASM_ARCH_IRQS_H | 
|  | 11 | #define ASM_ARCH_IRQS_H | 
|  | 12 |  | 
| Rabin Vincent | 06be2ef | 2011-03-29 21:59:51 +0200 | [diff] [blame] | 13 | #define IRQ_LOCALTIMER			29 | 
|  | 14 | #define IRQ_LOCALWDOG			30 | 
| Srinidhi Kasagar | ffae4e0 | 2009-11-28 08:10:40 +0100 | [diff] [blame] | 15 |  | 
|  | 16 | /* Shared Peripheral Interrupt (SHPI) */ | 
|  | 17 | #define IRQ_SHPI_START			32 | 
|  | 18 |  | 
| Rabin Vincent | 06be2ef | 2011-03-29 21:59:51 +0200 | [diff] [blame] | 19 | /* | 
|  | 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. | 
|  | 22 | */ | 
| Srinidhi Kasagar | ffae4e0 | 2009-11-28 08:10:40 +0100 | [diff] [blame] | 23 | #define IRQ_MTU0		(IRQ_SHPI_START + 4) | 
| Srinidhi Kasagar | ffae4e0 | 2009-11-28 08:10:40 +0100 | [diff] [blame] | 24 |  | 
| Linus Walleij | bc71c09 | 2012-01-23 11:54:44 +0100 | [diff] [blame] | 25 | #define DBX500_NR_INTERNAL_IRQS		166 | 
| Rabin Vincent | 94bdc0e | 2010-03-03 04:54:37 +0100 | [diff] [blame] | 26 |  | 
|  | 27 | /* After chip-specific IRQ numbers we have the GPIO ones */ | 
|  | 28 | #define NOMADIK_NR_GPIO			288 | 
| Rabin Vincent | 6055930 | 2010-07-26 11:09:27 +0100 | [diff] [blame] | 29 | #define NOMADIK_GPIO_TO_IRQ(gpio)	((gpio) + DBX500_NR_INTERNAL_IRQS) | 
|  | 30 | #define NOMADIK_IRQ_TO_GPIO(irq)	((irq) - DBX500_NR_INTERNAL_IRQS) | 
| Rabin Vincent | 06be2ef | 2011-03-29 21:59:51 +0200 | [diff] [blame] | 31 | #define IRQ_GPIO_END			NOMADIK_GPIO_TO_IRQ(NOMADIK_NR_GPIO) | 
| Srinidhi Kasagar | ffae4e0 | 2009-11-28 08:10:40 +0100 | [diff] [blame] | 32 |  | 
| Rabin Vincent | 06be2ef | 2011-03-29 21:59:51 +0200 | [diff] [blame] | 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 | 
|  | 36 |  | 
| Arnd Bergmann | eba5274 | 2013-03-21 22:51:08 +0100 | [diff] [blame^] | 37 | #include "irqs-db8500.h" | 
| Rabin Vincent | 06be2ef | 2011-03-29 21:59:51 +0200 | [diff] [blame] | 38 |  | 
|  | 39 | #define IRQ_BOARD_START		IRQ_SOC_END | 
| Rabin Vincent | 6055930 | 2010-07-26 11:09:27 +0100 | [diff] [blame] | 40 | /* This will be overridden by board-specific irq headers */ | 
| Rabin Vincent | 06be2ef | 2011-03-29 21:59:51 +0200 | [diff] [blame] | 41 | #define IRQ_BOARD_END		IRQ_BOARD_START | 
| Rabin Vincent | 6055930 | 2010-07-26 11:09:27 +0100 | [diff] [blame] | 42 |  | 
| Linus Walleij | 5017f1c | 2012-02-29 18:15:20 +0100 | [diff] [blame] | 43 | #ifdef CONFIG_MACH_MOP500 | 
| Arnd Bergmann | eba5274 | 2013-03-21 22:51:08 +0100 | [diff] [blame^] | 44 | #include "irqs-board-mop500.h" | 
| Rabin Vincent | 39ae702 | 2010-07-26 11:12:15 +0100 | [diff] [blame] | 45 | #endif | 
|  | 46 |  | 
| Linus Walleij | c3b9d1d | 2012-10-18 11:08:05 +0200 | [diff] [blame] | 47 | #define UX500_NR_IRQS		IRQ_BOARD_END | 
| Rabin Vincent | 6055930 | 2010-07-26 11:09:27 +0100 | [diff] [blame] | 48 |  | 
|  | 49 | #endif /* ASM_ARCH_IRQS_H */ |