Changhwan Youn | 84bbc16 | 2010-07-16 12:12:07 +0900 | [diff] [blame] | 1 | /* linux/arch/arm/mach-s5pv310/include/mach/irqs.h |
| 2 | * |
| 3 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. |
| 4 | * http://www.samsung.com/ |
| 5 | * |
| 6 | * S5PV210 - IRQ definitions |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License version 2 as |
| 10 | * published by the Free Software Foundation. |
| 11 | */ |
| 12 | |
| 13 | #ifndef __ASM_ARCH_IRQS_H |
| 14 | #define __ASM_ARCH_IRQS_H __FILE__ |
| 15 | |
| 16 | #include <plat/irqs.h> |
| 17 | |
Kukjin Kim | 35fc950 | 2010-08-20 19:09:31 +0900 | [diff] [blame] | 18 | /* PPI: Private Peripheral Interrupt */ |
| 19 | |
Changhwan Youn | 84bbc16 | 2010-07-16 12:12:07 +0900 | [diff] [blame] | 20 | #define IRQ_PPI(x) S5P_IRQ(x+16) |
| 21 | |
| 22 | #define IRQ_LOCALTIMER IRQ_PPI(13) |
| 23 | |
Kukjin Kim | 35fc950 | 2010-08-20 19:09:31 +0900 | [diff] [blame] | 24 | /* SPI: Shared Peripheral Interrupt */ |
| 25 | |
Changhwan Youn | 84bbc16 | 2010-07-16 12:12:07 +0900 | [diff] [blame] | 26 | #define IRQ_SPI(x) S5P_IRQ(x+32) |
| 27 | |
| 28 | #define IRQ_EINT0 IRQ_SPI(40) |
| 29 | #define IRQ_EINT1 IRQ_SPI(41) |
| 30 | #define IRQ_EINT2 IRQ_SPI(42) |
| 31 | #define IRQ_EINT3 IRQ_SPI(43) |
| 32 | #define IRQ_USB_HSOTG IRQ_SPI(44) |
| 33 | #define IRQ_USB_HOST IRQ_SPI(45) |
| 34 | #define IRQ_MODEM_IF IRQ_SPI(46) |
| 35 | #define IRQ_ROTATOR IRQ_SPI(47) |
| 36 | #define IRQ_JPEG IRQ_SPI(48) |
| 37 | #define IRQ_2D IRQ_SPI(49) |
| 38 | #define IRQ_PCIE IRQ_SPI(50) |
| 39 | #define IRQ_SYSTEM_TIMER IRQ_SPI(51) |
| 40 | #define IRQ_MFC IRQ_SPI(52) |
Kukjin Kim | 35fc950 | 2010-08-20 19:09:31 +0900 | [diff] [blame] | 41 | #define IRQ_WDT IRQ_SPI(53) |
Changhwan Youn | 84bbc16 | 2010-07-16 12:12:07 +0900 | [diff] [blame] | 42 | #define IRQ_AUDIO_SS IRQ_SPI(54) |
| 43 | #define IRQ_AC97 IRQ_SPI(55) |
| 44 | #define IRQ_SPDIF IRQ_SPI(56) |
| 45 | #define IRQ_KEYPAD IRQ_SPI(57) |
| 46 | #define IRQ_INTFEEDCTRL_SSS IRQ_SPI(58) |
| 47 | #define IRQ_SLIMBUS IRQ_SPI(59) |
| 48 | #define IRQ_PMU IRQ_SPI(60) |
| 49 | #define IRQ_TSI IRQ_SPI(61) |
| 50 | #define IRQ_SATA IRQ_SPI(62) |
| 51 | #define IRQ_GPS IRQ_SPI(63) |
| 52 | |
| 53 | #define MAX_IRQ_IN_COMBINER 8 |
| 54 | #define COMBINER_GROUP(x) ((x) * MAX_IRQ_IN_COMBINER + IRQ_SPI(64)) |
| 55 | #define COMBINER_IRQ(x, y) (COMBINER_GROUP(x) + y) |
| 56 | |
| 57 | #define IRQ_TIMER0_VIC COMBINER_IRQ(22, 0) |
| 58 | #define IRQ_TIMER1_VIC COMBINER_IRQ(22, 1) |
| 59 | #define IRQ_TIMER2_VIC COMBINER_IRQ(22, 2) |
| 60 | #define IRQ_TIMER3_VIC COMBINER_IRQ(22, 3) |
| 61 | #define IRQ_TIMER4_VIC COMBINER_IRQ(22, 4) |
| 62 | |
| 63 | #define IRQ_UART0 COMBINER_IRQ(26, 0) |
| 64 | #define IRQ_UART1 COMBINER_IRQ(26, 1) |
| 65 | #define IRQ_UART2 COMBINER_IRQ(26, 2) |
| 66 | #define IRQ_UART3 COMBINER_IRQ(26, 3) |
| 67 | #define IRQ_UART4 COMBINER_IRQ(26, 4) |
| 68 | |
| 69 | #define IRQ_IIC COMBINER_IRQ(27, 0) |
| 70 | |
| 71 | /* Set the default NR_IRQS */ |
Kukjin Kim | 35fc950 | 2010-08-20 19:09:31 +0900 | [diff] [blame] | 72 | |
Changhwan Youn | 84bbc16 | 2010-07-16 12:12:07 +0900 | [diff] [blame] | 73 | #define NR_IRQS COMBINER_IRQ(MAX_COMBINER_NR, 0) |
| 74 | |
| 75 | #define MAX_COMBINER_NR 39 |
| 76 | |
Kukjin Kim | 35fc950 | 2010-08-20 19:09:31 +0900 | [diff] [blame] | 77 | #endif /* __ASM_ARCH_IRQS_H */ |