blob: c02dae7bf4a37923f99ec623337d78a08d182106 [file] [log] [blame]
Kukjin Kimbb19a752012-01-25 13:48:11 +09001/*
2 * Copyright (c) 2010-2012 Samsung Electronics Co., Ltd.
Kukjin Kimc81a24f2011-02-14 16:10:55 +09003 * http://www.samsung.com
Changhwan Youn84bbc162010-07-16 12:12:07 +09004 *
Kukjin Kimbb19a752012-01-25 13:48:11 +09005 * EXYNOS - IRQ definitions
Changhwan Youn84bbc162010-07-16 12:12:07 +09006 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10*/
11
12#ifndef __ASM_ARCH_IRQS_H
13#define __ASM_ARCH_IRQS_H __FILE__
14
15#include <plat/irqs.h>
16
Kukjin Kim35fc9502010-08-20 19:09:31 +090017/* PPI: Private Peripheral Interrupt */
18
Kukjin Kimbb19a752012-01-25 13:48:11 +090019#define IRQ_PPI(x) (x + 16)
Changhwan Youn3a062282011-10-04 17:02:58 +090020
Kukjin Kim35fc9502010-08-20 19:09:31 +090021/* SPI: Shared Peripheral Interrupt */
22
Kukjin Kimbb19a752012-01-25 13:48:11 +090023#define IRQ_SPI(x) (x + 32)
Changhwan Youn84bbc162010-07-16 12:12:07 +090024
Kukjin Kimbb19a752012-01-25 13:48:11 +090025/* COMBINER */
Changhwan Younb45756f2010-11-29 16:58:29 +090026
Kukjin Kimbb19a752012-01-25 13:48:11 +090027#define MAX_IRQ_IN_COMBINER 8
28#define COMBINER_GROUP(x) ((x) * MAX_IRQ_IN_COMBINER + IRQ_SPI(128))
29#define COMBINER_IRQ(x, y) (COMBINER_GROUP(x) + y)
Changhwan Youn69644a82011-07-16 10:49:41 +090030
Kukjin Kimbb19a752012-01-25 13:48:11 +090031/* For EXYNOS4 and EXYNOS5 */
Changhwan Youn69644a82011-07-16 10:49:41 +090032
Kukjin Kimbb19a752012-01-25 13:48:11 +090033#define EXYNOS_IRQ_MCT_LOCALTIMER IRQ_PPI(12)
Changhwan Youn69644a82011-07-16 10:49:41 +090034
Kukjin Kimbb19a752012-01-25 13:48:11 +090035#define EXYNOS_IRQ_EINT16_31 IRQ_SPI(32)
Changhwan Youn69644a82011-07-16 10:49:41 +090036
Kukjin Kimbb19a752012-01-25 13:48:11 +090037/* For EXYNOS4 SoCs */
Changhwan Youn69644a82011-07-16 10:49:41 +090038
Kukjin Kimbb19a752012-01-25 13:48:11 +090039#define EXYNOS4_IRQ_EINT0 IRQ_SPI(16)
40#define EXYNOS4_IRQ_EINT1 IRQ_SPI(17)
41#define EXYNOS4_IRQ_EINT2 IRQ_SPI(18)
42#define EXYNOS4_IRQ_EINT3 IRQ_SPI(19)
43#define EXYNOS4_IRQ_EINT4 IRQ_SPI(20)
44#define EXYNOS4_IRQ_EINT5 IRQ_SPI(21)
45#define EXYNOS4_IRQ_EINT6 IRQ_SPI(22)
46#define EXYNOS4_IRQ_EINT7 IRQ_SPI(23)
47#define EXYNOS4_IRQ_EINT8 IRQ_SPI(24)
48#define EXYNOS4_IRQ_EINT9 IRQ_SPI(25)
49#define EXYNOS4_IRQ_EINT10 IRQ_SPI(26)
50#define EXYNOS4_IRQ_EINT11 IRQ_SPI(27)
51#define EXYNOS4_IRQ_EINT12 IRQ_SPI(28)
52#define EXYNOS4_IRQ_EINT13 IRQ_SPI(29)
53#define EXYNOS4_IRQ_EINT14 IRQ_SPI(30)
54#define EXYNOS4_IRQ_EINT15 IRQ_SPI(31)
Changhwan Youn69644a82011-07-16 10:49:41 +090055
Kukjin Kimbb19a752012-01-25 13:48:11 +090056#define EXYNOS4_IRQ_MDMA0 IRQ_SPI(33)
57#define EXYNOS4_IRQ_MDMA1 IRQ_SPI(34)
58#define EXYNOS4_IRQ_PDMA0 IRQ_SPI(35)
59#define EXYNOS4_IRQ_PDMA1 IRQ_SPI(36)
60#define EXYNOS4_IRQ_TIMER0_VIC IRQ_SPI(37)
61#define EXYNOS4_IRQ_TIMER1_VIC IRQ_SPI(38)
62#define EXYNOS4_IRQ_TIMER2_VIC IRQ_SPI(39)
63#define EXYNOS4_IRQ_TIMER3_VIC IRQ_SPI(40)
64#define EXYNOS4_IRQ_TIMER4_VIC IRQ_SPI(41)
65#define EXYNOS4_IRQ_MCT_L0 IRQ_SPI(42)
66#define EXYNOS4_IRQ_WDT IRQ_SPI(43)
67#define EXYNOS4_IRQ_RTC_ALARM IRQ_SPI(44)
68#define EXYNOS4_IRQ_RTC_TIC IRQ_SPI(45)
69#define EXYNOS4_IRQ_GPIO_XB IRQ_SPI(46)
70#define EXYNOS4_IRQ_GPIO_XA IRQ_SPI(47)
71#define EXYNOS4_IRQ_MCT_L1 IRQ_SPI(48)
Changhwan Youn84bbc162010-07-16 12:12:07 +090072
Kukjin Kim171c0672012-02-10 11:57:53 +090073#define EXYNOS4_IRQ_UART0 IRQ_SPI(52)
74#define EXYNOS4_IRQ_UART1 IRQ_SPI(53)
75#define EXYNOS4_IRQ_UART2 IRQ_SPI(54)
76#define EXYNOS4_IRQ_UART3 IRQ_SPI(55)
77#define EXYNOS4_IRQ_UART4 IRQ_SPI(56)
Kukjin Kimbb19a752012-01-25 13:48:11 +090078#define EXYNOS4_IRQ_MCT_G0 IRQ_SPI(57)
79#define EXYNOS4_IRQ_IIC IRQ_SPI(58)
80#define EXYNOS4_IRQ_IIC1 IRQ_SPI(59)
81#define EXYNOS4_IRQ_IIC2 IRQ_SPI(60)
82#define EXYNOS4_IRQ_IIC3 IRQ_SPI(61)
83#define EXYNOS4_IRQ_IIC4 IRQ_SPI(62)
84#define EXYNOS4_IRQ_IIC5 IRQ_SPI(63)
85#define EXYNOS4_IRQ_IIC6 IRQ_SPI(64)
86#define EXYNOS4_IRQ_IIC7 IRQ_SPI(65)
87#define EXYNOS4_IRQ_SPI0 IRQ_SPI(66)
88#define EXYNOS4_IRQ_SPI1 IRQ_SPI(67)
89#define EXYNOS4_IRQ_SPI2 IRQ_SPI(68)
Kukjin Kim171c0672012-02-10 11:57:53 +090090
Kukjin Kimbb19a752012-01-25 13:48:11 +090091#define EXYNOS4_IRQ_USB_HOST IRQ_SPI(70)
92#define EXYNOS4_IRQ_USB_HSOTG IRQ_SPI(71)
93#define EXYNOS4_IRQ_MODEM_IF IRQ_SPI(72)
94#define EXYNOS4_IRQ_HSMMC0 IRQ_SPI(73)
95#define EXYNOS4_IRQ_HSMMC1 IRQ_SPI(74)
96#define EXYNOS4_IRQ_HSMMC2 IRQ_SPI(75)
97#define EXYNOS4_IRQ_HSMMC3 IRQ_SPI(76)
98#define EXYNOS4_IRQ_DWMCI IRQ_SPI(77)
99
100#define EXYNOS4_IRQ_MIPI_CSIS0 IRQ_SPI(78)
101#define EXYNOS4_IRQ_MIPI_CSIS1 IRQ_SPI(80)
102
103#define EXYNOS4_IRQ_ONENAND_AUDI IRQ_SPI(82)
104#define EXYNOS4_IRQ_ROTATOR IRQ_SPI(83)
105#define EXYNOS4_IRQ_FIMC0 IRQ_SPI(84)
106#define EXYNOS4_IRQ_FIMC1 IRQ_SPI(85)
107#define EXYNOS4_IRQ_FIMC2 IRQ_SPI(86)
108#define EXYNOS4_IRQ_FIMC3 IRQ_SPI(87)
109#define EXYNOS4_IRQ_JPEG IRQ_SPI(88)
110#define EXYNOS4_IRQ_2D IRQ_SPI(89)
111#define EXYNOS4_IRQ_PCIE IRQ_SPI(90)
112
113#define EXYNOS4_IRQ_MIXER IRQ_SPI(91)
114#define EXYNOS4_IRQ_HDMI IRQ_SPI(92)
115#define EXYNOS4_IRQ_IIC_HDMIPHY IRQ_SPI(93)
116#define EXYNOS4_IRQ_MFC IRQ_SPI(94)
117#define EXYNOS4_IRQ_SDO IRQ_SPI(95)
118
119#define EXYNOS4_IRQ_AUDIO_SS IRQ_SPI(96)
120#define EXYNOS4_IRQ_I2S0 IRQ_SPI(97)
121#define EXYNOS4_IRQ_I2S1 IRQ_SPI(98)
122#define EXYNOS4_IRQ_I2S2 IRQ_SPI(99)
123#define EXYNOS4_IRQ_AC97 IRQ_SPI(100)
124
125#define EXYNOS4_IRQ_SPDIF IRQ_SPI(104)
126#define EXYNOS4_IRQ_ADC0 IRQ_SPI(105)
127#define EXYNOS4_IRQ_PEN0 IRQ_SPI(106)
128#define EXYNOS4_IRQ_ADC1 IRQ_SPI(107)
129#define EXYNOS4_IRQ_PEN1 IRQ_SPI(108)
130#define EXYNOS4_IRQ_KEYPAD IRQ_SPI(109)
131#define EXYNOS4_IRQ_PMU IRQ_SPI(110)
132#define EXYNOS4_IRQ_GPS IRQ_SPI(111)
133#define EXYNOS4_IRQ_INTFEEDCTRL_SSS IRQ_SPI(112)
134#define EXYNOS4_IRQ_SLIMBUS IRQ_SPI(113)
135
136#define EXYNOS4_IRQ_TSI IRQ_SPI(115)
137#define EXYNOS4_IRQ_SATA IRQ_SPI(116)
138
139#define EXYNOS4_IRQ_SYSMMU_MDMA0_0 COMBINER_IRQ(4, 0)
140#define EXYNOS4_IRQ_SYSMMU_SSS_0 COMBINER_IRQ(4, 1)
141#define EXYNOS4_IRQ_SYSMMU_FIMC0_0 COMBINER_IRQ(4, 2)
142#define EXYNOS4_IRQ_SYSMMU_FIMC1_0 COMBINER_IRQ(4, 3)
143#define EXYNOS4_IRQ_SYSMMU_FIMC2_0 COMBINER_IRQ(4, 4)
144#define EXYNOS4_IRQ_SYSMMU_FIMC3_0 COMBINER_IRQ(4, 5)
145#define EXYNOS4_IRQ_SYSMMU_JPEG_0 COMBINER_IRQ(4, 6)
146#define EXYNOS4_IRQ_SYSMMU_2D_0 COMBINER_IRQ(4, 7)
147
148#define EXYNOS4_IRQ_SYSMMU_ROTATOR_0 COMBINER_IRQ(5, 0)
149#define EXYNOS4_IRQ_SYSMMU_MDMA1_0 COMBINER_IRQ(5, 1)
150#define EXYNOS4_IRQ_SYSMMU_LCD0_M0_0 COMBINER_IRQ(5, 2)
151#define EXYNOS4_IRQ_SYSMMU_LCD1_M1_0 COMBINER_IRQ(5, 3)
152#define EXYNOS4_IRQ_SYSMMU_TV_M0_0 COMBINER_IRQ(5, 4)
153#define EXYNOS4_IRQ_SYSMMU_MFC_M0_0 COMBINER_IRQ(5, 5)
154#define EXYNOS4_IRQ_SYSMMU_MFC_M1_0 COMBINER_IRQ(5, 6)
155#define EXYNOS4_IRQ_SYSMMU_PCIE_0 COMBINER_IRQ(5, 7)
156
157#define EXYNOS4_IRQ_FIMD0_FIFO COMBINER_IRQ(11, 0)
158#define EXYNOS4_IRQ_FIMD0_VSYNC COMBINER_IRQ(11, 1)
159#define EXYNOS4_IRQ_FIMD0_SYSTEM COMBINER_IRQ(11, 2)
160
161#define EXYNOS4_MAX_COMBINER_NR 16
162
163#define EXYNOS4_IRQ_GPIO1_NR_GROUPS 16
164#define EXYNOS4_IRQ_GPIO2_NR_GROUPS 9
165
166/*
167 * For Compatibility:
168 * the default is for EXYNOS4, and
169 * for exynos5, should be re-mapped at function
170 */
171
172#define IRQ_TIMER0_VIC EXYNOS4_IRQ_TIMER0_VIC
173#define IRQ_TIMER1_VIC EXYNOS4_IRQ_TIMER1_VIC
174#define IRQ_TIMER2_VIC EXYNOS4_IRQ_TIMER2_VIC
175#define IRQ_TIMER3_VIC EXYNOS4_IRQ_TIMER3_VIC
176#define IRQ_TIMER4_VIC EXYNOS4_IRQ_TIMER4_VIC
177
178#define IRQ_WDT EXYNOS4_IRQ_WDT
179#define IRQ_RTC_ALARM EXYNOS4_IRQ_RTC_ALARM
180#define IRQ_RTC_TIC EXYNOS4_IRQ_RTC_TIC
181#define IRQ_GPIO_XB EXYNOS4_IRQ_GPIO_XB
182#define IRQ_GPIO_XA EXYNOS4_IRQ_GPIO_XA
183
184#define IRQ_IIC EXYNOS4_IRQ_IIC
185#define IRQ_IIC1 EXYNOS4_IRQ_IIC1
186#define IRQ_IIC3 EXYNOS4_IRQ_IIC3
187#define IRQ_IIC5 EXYNOS4_IRQ_IIC5
188#define IRQ_IIC6 EXYNOS4_IRQ_IIC6
189#define IRQ_IIC7 EXYNOS4_IRQ_IIC7
190
191#define IRQ_USB_HOST EXYNOS4_IRQ_USB_HOST
Lukasz Majewski8ea2d9e2012-05-13 08:28:28 +0900192#define IRQ_OTG EXYNOS4_IRQ_USB_HSOTG
Kukjin Kimbb19a752012-01-25 13:48:11 +0900193
194#define IRQ_HSMMC0 EXYNOS4_IRQ_HSMMC0
195#define IRQ_HSMMC1 EXYNOS4_IRQ_HSMMC1
196#define IRQ_HSMMC2 EXYNOS4_IRQ_HSMMC2
197#define IRQ_HSMMC3 EXYNOS4_IRQ_HSMMC3
198
199#define IRQ_MIPI_CSIS0 EXYNOS4_IRQ_MIPI_CSIS0
200
201#define IRQ_ONENAND_AUDI EXYNOS4_IRQ_ONENAND_AUDI
202
203#define IRQ_FIMC0 EXYNOS4_IRQ_FIMC0
204#define IRQ_FIMC1 EXYNOS4_IRQ_FIMC1
205#define IRQ_FIMC2 EXYNOS4_IRQ_FIMC2
206#define IRQ_FIMC3 EXYNOS4_IRQ_FIMC3
207#define IRQ_JPEG EXYNOS4_IRQ_JPEG
208#define IRQ_2D EXYNOS4_IRQ_2D
209
210#define IRQ_MIXER EXYNOS4_IRQ_MIXER
211#define IRQ_HDMI EXYNOS4_IRQ_HDMI
212#define IRQ_IIC_HDMIPHY EXYNOS4_IRQ_IIC_HDMIPHY
213#define IRQ_MFC EXYNOS4_IRQ_MFC
214#define IRQ_SDO EXYNOS4_IRQ_SDO
215
Tushar Behera0d923492012-04-05 16:08:25 -0700216#define IRQ_I2S0 EXYNOS4_IRQ_I2S0
217
Kukjin Kimbb19a752012-01-25 13:48:11 +0900218#define IRQ_ADC EXYNOS4_IRQ_ADC0
219#define IRQ_TC EXYNOS4_IRQ_PEN0
220
221#define IRQ_KEYPAD EXYNOS4_IRQ_KEYPAD
222#define IRQ_PMU EXYNOS4_IRQ_PMU
223
224#define IRQ_SYSMMU_MDMA0_0 EXYNOS4_IRQ_SYSMMU_MDMA0_0
225#define IRQ_SYSMMU_SSS_0 EXYNOS4_IRQ_SYSMMU_SSS_0
226#define IRQ_SYSMMU_FIMC0_0 EXYNOS4_IRQ_SYSMMU_FIMC0_0
227#define IRQ_SYSMMU_FIMC1_0 EXYNOS4_IRQ_SYSMMU_FIMC1_0
228#define IRQ_SYSMMU_FIMC2_0 EXYNOS4_IRQ_SYSMMU_FIMC2_0
229#define IRQ_SYSMMU_FIMC3_0 EXYNOS4_IRQ_SYSMMU_FIMC3_0
230#define IRQ_SYSMMU_JPEG_0 EXYNOS4_IRQ_SYSMMU_JPEG_0
231#define IRQ_SYSMMU_2D_0 EXYNOS4_IRQ_SYSMMU_2D_0
232
233#define IRQ_SYSMMU_ROTATOR_0 EXYNOS4_IRQ_SYSMMU_ROTATOR_0
234#define IRQ_SYSMMU_MDMA1_0 EXYNOS4_IRQ_SYSMMU_MDMA1_0
235#define IRQ_SYSMMU_LCD0_M0_0 EXYNOS4_IRQ_SYSMMU_LCD0_M0_0
236#define IRQ_SYSMMU_LCD1_M1_0 EXYNOS4_IRQ_SYSMMU_LCD1_M1_0
237#define IRQ_SYSMMU_TV_M0_0 EXYNOS4_IRQ_SYSMMU_TV_M0_0
238#define IRQ_SYSMMU_MFC_M0_0 EXYNOS4_IRQ_SYSMMU_MFC_M0_0
239#define IRQ_SYSMMU_MFC_M1_0 EXYNOS4_IRQ_SYSMMU_MFC_M1_0
240#define IRQ_SYSMMU_PCIE_0 EXYNOS4_IRQ_SYSMMU_PCIE_0
241
242#define IRQ_FIMD0_FIFO EXYNOS4_IRQ_FIMD0_FIFO
243#define IRQ_FIMD0_VSYNC EXYNOS4_IRQ_FIMD0_VSYNC
244#define IRQ_FIMD0_SYSTEM EXYNOS4_IRQ_FIMD0_SYSTEM
245
246#define IRQ_GPIO1_NR_GROUPS EXYNOS4_IRQ_GPIO1_NR_GROUPS
247#define IRQ_GPIO2_NR_GROUPS EXYNOS4_IRQ_GPIO2_NR_GROUPS
248
249/* For EXYNOS5 SoCs */
250
251#define EXYNOS5_IRQ_MDMA0 IRQ_SPI(33)
252#define EXYNOS5_IRQ_PDMA0 IRQ_SPI(34)
253#define EXYNOS5_IRQ_PDMA1 IRQ_SPI(35)
254#define EXYNOS5_IRQ_TIMER0_VIC IRQ_SPI(36)
255#define EXYNOS5_IRQ_TIMER1_VIC IRQ_SPI(37)
256#define EXYNOS5_IRQ_TIMER2_VIC IRQ_SPI(38)
257#define EXYNOS5_IRQ_TIMER3_VIC IRQ_SPI(39)
258#define EXYNOS5_IRQ_TIMER4_VIC IRQ_SPI(40)
259#define EXYNOS5_IRQ_RTIC IRQ_SPI(41)
260#define EXYNOS5_IRQ_WDT IRQ_SPI(42)
261#define EXYNOS5_IRQ_RTC_ALARM IRQ_SPI(43)
262#define EXYNOS5_IRQ_RTC_TIC IRQ_SPI(44)
263#define EXYNOS5_IRQ_GPIO_XB IRQ_SPI(45)
264#define EXYNOS5_IRQ_GPIO_XA IRQ_SPI(46)
265#define EXYNOS5_IRQ_GPIO IRQ_SPI(47)
266#define EXYNOS5_IRQ_IEM_IEC IRQ_SPI(48)
267#define EXYNOS5_IRQ_IEM_APC IRQ_SPI(49)
268#define EXYNOS5_IRQ_GPIO_C2C IRQ_SPI(50)
Kukjin Kim171c0672012-02-10 11:57:53 +0900269#define EXYNOS5_IRQ_UART0 IRQ_SPI(51)
270#define EXYNOS5_IRQ_UART1 IRQ_SPI(52)
271#define EXYNOS5_IRQ_UART2 IRQ_SPI(53)
272#define EXYNOS5_IRQ_UART3 IRQ_SPI(54)
273#define EXYNOS5_IRQ_UART4 IRQ_SPI(55)
Kukjin Kimbb19a752012-01-25 13:48:11 +0900274#define EXYNOS5_IRQ_IIC IRQ_SPI(56)
275#define EXYNOS5_IRQ_IIC1 IRQ_SPI(57)
276#define EXYNOS5_IRQ_IIC2 IRQ_SPI(58)
277#define EXYNOS5_IRQ_IIC3 IRQ_SPI(59)
278#define EXYNOS5_IRQ_IIC4 IRQ_SPI(60)
279#define EXYNOS5_IRQ_IIC5 IRQ_SPI(61)
280#define EXYNOS5_IRQ_IIC6 IRQ_SPI(62)
281#define EXYNOS5_IRQ_IIC7 IRQ_SPI(63)
282#define EXYNOS5_IRQ_IIC_HDMIPHY IRQ_SPI(64)
283#define EXYNOS5_IRQ_TMU IRQ_SPI(65)
284#define EXYNOS5_IRQ_FIQ_0 IRQ_SPI(66)
285#define EXYNOS5_IRQ_FIQ_1 IRQ_SPI(67)
286#define EXYNOS5_IRQ_SPI0 IRQ_SPI(68)
287#define EXYNOS5_IRQ_SPI1 IRQ_SPI(69)
288#define EXYNOS5_IRQ_SPI2 IRQ_SPI(70)
289#define EXYNOS5_IRQ_USB_HOST IRQ_SPI(71)
290#define EXYNOS5_IRQ_USB3_DRD IRQ_SPI(72)
291#define EXYNOS5_IRQ_MIPI_HSI IRQ_SPI(73)
292#define EXYNOS5_IRQ_USB_HSOTG IRQ_SPI(74)
293#define EXYNOS5_IRQ_HSMMC0 IRQ_SPI(75)
294#define EXYNOS5_IRQ_HSMMC1 IRQ_SPI(76)
295#define EXYNOS5_IRQ_HSMMC2 IRQ_SPI(77)
296#define EXYNOS5_IRQ_HSMMC3 IRQ_SPI(78)
297#define EXYNOS5_IRQ_MIPICSI0 IRQ_SPI(79)
298#define EXYNOS5_IRQ_MIPICSI1 IRQ_SPI(80)
299#define EXYNOS5_IRQ_EFNFCON_DMA_ABORT IRQ_SPI(81)
300#define EXYNOS5_IRQ_MIPIDSI0 IRQ_SPI(82)
301#define EXYNOS5_IRQ_ROTATOR IRQ_SPI(84)
302#define EXYNOS5_IRQ_GSC0 IRQ_SPI(85)
303#define EXYNOS5_IRQ_GSC1 IRQ_SPI(86)
304#define EXYNOS5_IRQ_GSC2 IRQ_SPI(87)
305#define EXYNOS5_IRQ_GSC3 IRQ_SPI(88)
306#define EXYNOS5_IRQ_JPEG IRQ_SPI(89)
307#define EXYNOS5_IRQ_EFNFCON_DMA IRQ_SPI(90)
308#define EXYNOS5_IRQ_2D IRQ_SPI(91)
309#define EXYNOS5_IRQ_SFMC0 IRQ_SPI(92)
310#define EXYNOS5_IRQ_SFMC1 IRQ_SPI(93)
311#define EXYNOS5_IRQ_MIXER IRQ_SPI(94)
312#define EXYNOS5_IRQ_HDMI IRQ_SPI(95)
313#define EXYNOS5_IRQ_MFC IRQ_SPI(96)
314#define EXYNOS5_IRQ_AUDIO_SS IRQ_SPI(97)
315#define EXYNOS5_IRQ_I2S0 IRQ_SPI(98)
316#define EXYNOS5_IRQ_I2S1 IRQ_SPI(99)
317#define EXYNOS5_IRQ_I2S2 IRQ_SPI(100)
318#define EXYNOS5_IRQ_AC97 IRQ_SPI(101)
319#define EXYNOS5_IRQ_PCM0 IRQ_SPI(102)
320#define EXYNOS5_IRQ_PCM1 IRQ_SPI(103)
321#define EXYNOS5_IRQ_PCM2 IRQ_SPI(104)
322#define EXYNOS5_IRQ_SPDIF IRQ_SPI(105)
323#define EXYNOS5_IRQ_ADC0 IRQ_SPI(106)
324
325#define EXYNOS5_IRQ_SATA_PHY IRQ_SPI(108)
326#define EXYNOS5_IRQ_SATA_PMEMREQ IRQ_SPI(109)
327#define EXYNOS5_IRQ_CAM_C IRQ_SPI(110)
328#define EXYNOS5_IRQ_EAGLE_PMU IRQ_SPI(111)
329#define EXYNOS5_IRQ_INTFEEDCTRL_SSS IRQ_SPI(112)
330#define EXYNOS5_IRQ_DP1_INTP1 IRQ_SPI(113)
331#define EXYNOS5_IRQ_CEC IRQ_SPI(114)
332#define EXYNOS5_IRQ_SATA IRQ_SPI(115)
333#define EXYNOS5_IRQ_NFCON IRQ_SPI(116)
334
335#define EXYNOS5_IRQ_MMC44 IRQ_SPI(123)
336#define EXYNOS5_IRQ_MDMA1 IRQ_SPI(124)
337#define EXYNOS5_IRQ_FIMC_LITE0 IRQ_SPI(125)
338#define EXYNOS5_IRQ_FIMC_LITE1 IRQ_SPI(126)
339#define EXYNOS5_IRQ_RP_TIMER IRQ_SPI(127)
340
341#define EXYNOS5_IRQ_PMU COMBINER_IRQ(1, 2)
342#define EXYNOS5_IRQ_PMU_CPU1 COMBINER_IRQ(1, 6)
343
344#define EXYNOS5_IRQ_SYSMMU_GSC0_0 COMBINER_IRQ(2, 0)
345#define EXYNOS5_IRQ_SYSMMU_GSC0_1 COMBINER_IRQ(2, 1)
346#define EXYNOS5_IRQ_SYSMMU_GSC1_0 COMBINER_IRQ(2, 2)
347#define EXYNOS5_IRQ_SYSMMU_GSC1_1 COMBINER_IRQ(2, 3)
348#define EXYNOS5_IRQ_SYSMMU_GSC2_0 COMBINER_IRQ(2, 4)
349#define EXYNOS5_IRQ_SYSMMU_GSC2_1 COMBINER_IRQ(2, 5)
350#define EXYNOS5_IRQ_SYSMMU_GSC3_0 COMBINER_IRQ(2, 6)
351#define EXYNOS5_IRQ_SYSMMU_GSC3_1 COMBINER_IRQ(2, 7)
352
353#define EXYNOS5_IRQ_SYSMMU_FIMD1_0 COMBINER_IRQ(3, 2)
354#define EXYNOS5_IRQ_SYSMMU_FIMD1_1 COMBINER_IRQ(3, 3)
355#define EXYNOS5_IRQ_SYSMMU_LITE0_0 COMBINER_IRQ(3, 4)
356#define EXYNOS5_IRQ_SYSMMU_LITE0_1 COMBINER_IRQ(3, 5)
357#define EXYNOS5_IRQ_SYSMMU_SCALERPISP_0 COMBINER_IRQ(3, 6)
358#define EXYNOS5_IRQ_SYSMMU_SCALERPISP_1 COMBINER_IRQ(3, 7)
359
360#define EXYNOS5_IRQ_SYSMMU_ROTATOR_0 COMBINER_IRQ(4, 0)
361#define EXYNOS5_IRQ_SYSMMU_ROTATOR_1 COMBINER_IRQ(4, 1)
362#define EXYNOS5_IRQ_SYSMMU_JPEG_0 COMBINER_IRQ(4, 2)
363#define EXYNOS5_IRQ_SYSMMU_JPEG_1 COMBINER_IRQ(4, 3)
364
365#define EXYNOS5_IRQ_SYSMMU_FD_0 COMBINER_IRQ(5, 0)
366#define EXYNOS5_IRQ_SYSMMU_FD_1 COMBINER_IRQ(5, 1)
367#define EXYNOS5_IRQ_SYSMMU_SCALERCISP_0 COMBINER_IRQ(5, 2)
368#define EXYNOS5_IRQ_SYSMMU_SCALERCISP_1 COMBINER_IRQ(5, 3)
369#define EXYNOS5_IRQ_SYSMMU_MCUISP_0 COMBINER_IRQ(5, 4)
370#define EXYNOS5_IRQ_SYSMMU_MCUISP_1 COMBINER_IRQ(5, 5)
371#define EXYNOS5_IRQ_SYSMMU_3DNR_0 COMBINER_IRQ(5, 6)
372#define EXYNOS5_IRQ_SYSMMU_3DNR_1 COMBINER_IRQ(5, 7)
373
374#define EXYNOS5_IRQ_SYSMMU_ARM_0 COMBINER_IRQ(6, 0)
375#define EXYNOS5_IRQ_SYSMMU_ARM_1 COMBINER_IRQ(6, 1)
376#define EXYNOS5_IRQ_SYSMMU_MFC_L_0 COMBINER_IRQ(6, 2)
377#define EXYNOS5_IRQ_SYSMMU_MFC_L_1 COMBINER_IRQ(6, 3)
378#define EXYNOS5_IRQ_SYSMMU_RTIC_0 COMBINER_IRQ(6, 4)
379#define EXYNOS5_IRQ_SYSMMU_RTIC_1 COMBINER_IRQ(6, 5)
380#define EXYNOS5_IRQ_SYSMMU_SSS_0 COMBINER_IRQ(6, 6)
381#define EXYNOS5_IRQ_SYSMMU_SSS_1 COMBINER_IRQ(6, 7)
382
383#define EXYNOS5_IRQ_SYSMMU_MDMA0_0 COMBINER_IRQ(7, 0)
384#define EXYNOS5_IRQ_SYSMMU_MDMA0_1 COMBINER_IRQ(7, 1)
385#define EXYNOS5_IRQ_SYSMMU_MDMA1_0 COMBINER_IRQ(7, 2)
386#define EXYNOS5_IRQ_SYSMMU_MDMA1_1 COMBINER_IRQ(7, 3)
387#define EXYNOS5_IRQ_SYSMMU_TV_0 COMBINER_IRQ(7, 4)
388#define EXYNOS5_IRQ_SYSMMU_TV_1 COMBINER_IRQ(7, 5)
389#define EXYNOS5_IRQ_SYSMMU_GPSX_0 COMBINER_IRQ(7, 6)
390#define EXYNOS5_IRQ_SYSMMU_GPSX_1 COMBINER_IRQ(7, 7)
391
392#define EXYNOS5_IRQ_SYSMMU_MFC_R_0 COMBINER_IRQ(8, 5)
393#define EXYNOS5_IRQ_SYSMMU_MFC_R_1 COMBINER_IRQ(8, 6)
394
395#define EXYNOS5_IRQ_SYSMMU_DIS1_0 COMBINER_IRQ(9, 4)
396#define EXYNOS5_IRQ_SYSMMU_DIS1_1 COMBINER_IRQ(9, 5)
397
398#define EXYNOS5_IRQ_DP COMBINER_IRQ(10, 3)
399#define EXYNOS5_IRQ_SYSMMU_DIS0_0 COMBINER_IRQ(10, 4)
400#define EXYNOS5_IRQ_SYSMMU_DIS0_1 COMBINER_IRQ(10, 5)
401#define EXYNOS5_IRQ_SYSMMU_ISP_0 COMBINER_IRQ(10, 6)
402#define EXYNOS5_IRQ_SYSMMU_ISP_1 COMBINER_IRQ(10, 7)
403
404#define EXYNOS5_IRQ_SYSMMU_ODC_0 COMBINER_IRQ(11, 0)
405#define EXYNOS5_IRQ_SYSMMU_ODC_1 COMBINER_IRQ(11, 1)
406#define EXYNOS5_IRQ_SYSMMU_DRC_0 COMBINER_IRQ(11, 6)
407#define EXYNOS5_IRQ_SYSMMU_DRC_1 COMBINER_IRQ(11, 7)
408
409#define EXYNOS5_IRQ_FIMD1_FIFO COMBINER_IRQ(18, 4)
410#define EXYNOS5_IRQ_FIMD1_VSYNC COMBINER_IRQ(18, 5)
411#define EXYNOS5_IRQ_FIMD1_SYSTEM COMBINER_IRQ(18, 6)
412
413#define EXYNOS5_IRQ_EINT0 COMBINER_IRQ(23, 0)
414#define EXYNOS5_IRQ_MCT_L0 COMBINER_IRQ(23, 1)
415#define EXYNOS5_IRQ_MCT_L1 COMBINER_IRQ(23, 2)
416#define EXYNOS5_IRQ_MCT_G0 COMBINER_IRQ(23, 3)
417#define EXYNOS5_IRQ_MCT_G1 COMBINER_IRQ(23, 4)
418#define EXYNOS5_IRQ_MCT_G2 COMBINER_IRQ(23, 5)
419#define EXYNOS5_IRQ_MCT_G3 COMBINER_IRQ(23, 6)
420
421#define EXYNOS5_IRQ_EINT1 COMBINER_IRQ(24, 0)
422#define EXYNOS5_IRQ_SYSMMU_LITE1_0 COMBINER_IRQ(24, 1)
423#define EXYNOS5_IRQ_SYSMMU_LITE1_1 COMBINER_IRQ(24, 2)
424#define EXYNOS5_IRQ_SYSMMU_2D_0 COMBINER_IRQ(24, 5)
425#define EXYNOS5_IRQ_SYSMMU_2D_1 COMBINER_IRQ(24, 6)
426
427#define EXYNOS5_IRQ_EINT2 COMBINER_IRQ(25, 0)
428#define EXYNOS5_IRQ_EINT3 COMBINER_IRQ(25, 1)
429
430#define EXYNOS5_IRQ_EINT4 COMBINER_IRQ(26, 0)
431#define EXYNOS5_IRQ_EINT5 COMBINER_IRQ(26, 1)
432
433#define EXYNOS5_IRQ_EINT6 COMBINER_IRQ(27, 0)
434#define EXYNOS5_IRQ_EINT7 COMBINER_IRQ(27, 1)
435
436#define EXYNOS5_IRQ_EINT8 COMBINER_IRQ(28, 0)
437#define EXYNOS5_IRQ_EINT9 COMBINER_IRQ(28, 1)
438
439#define EXYNOS5_IRQ_EINT10 COMBINER_IRQ(29, 0)
440#define EXYNOS5_IRQ_EINT11 COMBINER_IRQ(29, 1)
441
442#define EXYNOS5_IRQ_EINT12 COMBINER_IRQ(30, 0)
443#define EXYNOS5_IRQ_EINT13 COMBINER_IRQ(30, 1)
444
445#define EXYNOS5_IRQ_EINT14 COMBINER_IRQ(31, 0)
446#define EXYNOS5_IRQ_EINT15 COMBINER_IRQ(31, 1)
447
448#define EXYNOS5_MAX_COMBINER_NR 32
449
450#define EXYNOS5_IRQ_GPIO1_NR_GROUPS 13
451#define EXYNOS5_IRQ_GPIO2_NR_GROUPS 9
452#define EXYNOS5_IRQ_GPIO3_NR_GROUPS 5
453#define EXYNOS5_IRQ_GPIO4_NR_GROUPS 1
454
455#define MAX_COMBINER_NR (EXYNOS4_MAX_COMBINER_NR > EXYNOS5_MAX_COMBINER_NR ? \
456 EXYNOS4_MAX_COMBINER_NR : EXYNOS5_MAX_COMBINER_NR)
457
458#define S5P_EINT_BASE1 COMBINER_IRQ(MAX_COMBINER_NR, 0)
459#define S5P_EINT_BASE2 (S5P_EINT_BASE1 + 16)
460#define S5P_GPIOINT_BASE (S5P_EINT_BASE1 + 32)
461#define IRQ_GPIO_END (S5P_GPIOINT_BASE + S5P_GPIOINT_COUNT)
462#define IRQ_TIMER_BASE (IRQ_GPIO_END + 64)
463
464/* Set the default NR_IRQS */
465
466#define NR_IRQS (IRQ_TIMER_BASE + IRQ_TIMER_COUNT)
Kukjin Kim171c0672012-02-10 11:57:53 +0900467
Kukjin Kim35fc9502010-08-20 19:09:31 +0900468#endif /* __ASM_ARCH_IRQS_H */