linux/arch/arm/mach-exynos/include/mach/irqs.h
<<
>>
Prefs
   1/*
   2 * Copyright (c) 2010-2012 Samsung Electronics Co., Ltd.
   3 *              http://www.samsung.com
   4 *
   5 * EXYNOS - IRQ definitions
   6 *
   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
  17/* PPI: Private Peripheral Interrupt */
  18
  19#define IRQ_PPI(x)                      (x + 16)
  20
  21/* SPI: Shared Peripheral Interrupt */
  22
  23#define IRQ_SPI(x)                      (x + 32)
  24
  25/* COMBINER */
  26
  27#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)
  30
  31/* For EXYNOS4 and EXYNOS5 */
  32
  33#define EXYNOS_IRQ_EINT16_31            IRQ_SPI(32)
  34
  35/* For EXYNOS4 SoCs */
  36
  37#define EXYNOS4_IRQ_EINT0               IRQ_SPI(16)
  38#define EXYNOS4_IRQ_EINT1               IRQ_SPI(17)
  39#define EXYNOS4_IRQ_EINT2               IRQ_SPI(18)
  40#define EXYNOS4_IRQ_EINT3               IRQ_SPI(19)
  41#define EXYNOS4_IRQ_EINT4               IRQ_SPI(20)
  42#define EXYNOS4_IRQ_EINT5               IRQ_SPI(21)
  43#define EXYNOS4_IRQ_EINT6               IRQ_SPI(22)
  44#define EXYNOS4_IRQ_EINT7               IRQ_SPI(23)
  45#define EXYNOS4_IRQ_EINT8               IRQ_SPI(24)
  46#define EXYNOS4_IRQ_EINT9               IRQ_SPI(25)
  47#define EXYNOS4_IRQ_EINT10              IRQ_SPI(26)
  48#define EXYNOS4_IRQ_EINT11              IRQ_SPI(27)
  49#define EXYNOS4_IRQ_EINT12              IRQ_SPI(28)
  50#define EXYNOS4_IRQ_EINT13              IRQ_SPI(29)
  51#define EXYNOS4_IRQ_EINT14              IRQ_SPI(30)
  52#define EXYNOS4_IRQ_EINT15              IRQ_SPI(31)
  53
  54#define EXYNOS4_IRQ_MDMA0               IRQ_SPI(33)
  55#define EXYNOS4_IRQ_MDMA1               IRQ_SPI(34)
  56#define EXYNOS4_IRQ_PDMA0               IRQ_SPI(35)
  57#define EXYNOS4_IRQ_PDMA1               IRQ_SPI(36)
  58#define EXYNOS4_IRQ_TIMER0_VIC          IRQ_SPI(37)
  59#define EXYNOS4_IRQ_TIMER1_VIC          IRQ_SPI(38)
  60#define EXYNOS4_IRQ_TIMER2_VIC          IRQ_SPI(39)
  61#define EXYNOS4_IRQ_TIMER3_VIC          IRQ_SPI(40)
  62#define EXYNOS4_IRQ_TIMER4_VIC          IRQ_SPI(41)
  63#define EXYNOS4_IRQ_MCT_L0              IRQ_SPI(42)
  64#define EXYNOS4_IRQ_WDT                 IRQ_SPI(43)
  65#define EXYNOS4_IRQ_RTC_ALARM           IRQ_SPI(44)
  66#define EXYNOS4_IRQ_RTC_TIC             IRQ_SPI(45)
  67#define EXYNOS4_IRQ_GPIO_XB             IRQ_SPI(46)
  68#define EXYNOS4_IRQ_GPIO_XA             IRQ_SPI(47)
  69#define EXYNOS4_IRQ_MCT_L1              IRQ_SPI(48)
  70
  71#define EXYNOS4_IRQ_UART0               IRQ_SPI(52)
  72#define EXYNOS4_IRQ_UART1               IRQ_SPI(53)
  73#define EXYNOS4_IRQ_UART2               IRQ_SPI(54)
  74#define EXYNOS4_IRQ_UART3               IRQ_SPI(55)
  75#define EXYNOS4_IRQ_UART4               IRQ_SPI(56)
  76#define EXYNOS4_IRQ_MCT_G0              IRQ_SPI(57)
  77#define EXYNOS4_IRQ_IIC                 IRQ_SPI(58)
  78#define EXYNOS4_IRQ_IIC1                IRQ_SPI(59)
  79#define EXYNOS4_IRQ_IIC2                IRQ_SPI(60)
  80#define EXYNOS4_IRQ_IIC3                IRQ_SPI(61)
  81#define EXYNOS4_IRQ_IIC4                IRQ_SPI(62)
  82#define EXYNOS4_IRQ_IIC5                IRQ_SPI(63)
  83#define EXYNOS4_IRQ_IIC6                IRQ_SPI(64)
  84#define EXYNOS4_IRQ_IIC7                IRQ_SPI(65)
  85#define EXYNOS4_IRQ_SPI0                IRQ_SPI(66)
  86#define EXYNOS4_IRQ_SPI1                IRQ_SPI(67)
  87#define EXYNOS4_IRQ_SPI2                IRQ_SPI(68)
  88
  89#define EXYNOS4_IRQ_USB_HOST            IRQ_SPI(70)
  90#define EXYNOS4_IRQ_USB_HSOTG           IRQ_SPI(71)
  91#define EXYNOS4_IRQ_MODEM_IF            IRQ_SPI(72)
  92#define EXYNOS4_IRQ_HSMMC0              IRQ_SPI(73)
  93#define EXYNOS4_IRQ_HSMMC1              IRQ_SPI(74)
  94#define EXYNOS4_IRQ_HSMMC2              IRQ_SPI(75)
  95#define EXYNOS4_IRQ_HSMMC3              IRQ_SPI(76)
  96#define EXYNOS4_IRQ_DWMCI               IRQ_SPI(77)
  97
  98#define EXYNOS4_IRQ_MIPI_CSIS0          IRQ_SPI(78)
  99#define EXYNOS4_IRQ_MIPI_CSIS1          IRQ_SPI(80)
 100
 101#define EXYNOS4_IRQ_ONENAND_AUDI        IRQ_SPI(82)
 102#define EXYNOS4_IRQ_ROTATOR             IRQ_SPI(83)
 103#define EXYNOS4_IRQ_FIMC0               IRQ_SPI(84)
 104#define EXYNOS4_IRQ_FIMC1               IRQ_SPI(85)
 105#define EXYNOS4_IRQ_FIMC2               IRQ_SPI(86)
 106#define EXYNOS4_IRQ_FIMC3               IRQ_SPI(87)
 107#define EXYNOS4_IRQ_JPEG                IRQ_SPI(88)
 108#define EXYNOS4_IRQ_2D                  IRQ_SPI(89)
 109#define EXYNOS4_IRQ_PCIE                IRQ_SPI(90)
 110
 111#define EXYNOS4_IRQ_MIXER               IRQ_SPI(91)
 112#define EXYNOS4_IRQ_HDMI                IRQ_SPI(92)
 113#define EXYNOS4_IRQ_IIC_HDMIPHY         IRQ_SPI(93)
 114#define EXYNOS4_IRQ_MFC                 IRQ_SPI(94)
 115#define EXYNOS4_IRQ_SDO                 IRQ_SPI(95)
 116
 117#define EXYNOS4_IRQ_AUDIO_SS            IRQ_SPI(96)
 118#define EXYNOS4_IRQ_I2S0                IRQ_SPI(97)
 119#define EXYNOS4_IRQ_I2S1                IRQ_SPI(98)
 120#define EXYNOS4_IRQ_I2S2                IRQ_SPI(99)
 121#define EXYNOS4_IRQ_AC97                IRQ_SPI(100)
 122
 123#define EXYNOS4_IRQ_SPDIF               IRQ_SPI(104)
 124#define EXYNOS4_IRQ_ADC0                IRQ_SPI(105)
 125#define EXYNOS4_IRQ_PEN0                IRQ_SPI(106)
 126#define EXYNOS4_IRQ_ADC1                IRQ_SPI(107)
 127#define EXYNOS4_IRQ_PEN1                IRQ_SPI(108)
 128#define EXYNOS4_IRQ_KEYPAD              IRQ_SPI(109)
 129#define EXYNOS4_IRQ_POWER_PMU           IRQ_SPI(110)
 130#define EXYNOS4_IRQ_GPS                 IRQ_SPI(111)
 131#define EXYNOS4_IRQ_INTFEEDCTRL_SSS     IRQ_SPI(112)
 132#define EXYNOS4_IRQ_SLIMBUS             IRQ_SPI(113)
 133
 134#define EXYNOS4_IRQ_TSI                 IRQ_SPI(115)
 135#define EXYNOS4_IRQ_SATA                IRQ_SPI(116)
 136
 137#define EXYNOS4_IRQ_PMU                 COMBINER_IRQ(2, 2)
 138#define EXYNOS4_IRQ_PMU_CPU1            COMBINER_IRQ(3, 2)
 139#define EXYNOS4_IRQ_PMU_CPU2            COMBINER_IRQ(18, 2)
 140#define EXYNOS4_IRQ_PMU_CPU3            COMBINER_IRQ(19, 2)
 141
 142#define EXYNOS4_IRQ_TMU_TRIG0           COMBINER_IRQ(2, 4)
 143#define EXYNOS4_IRQ_TMU_TRIG1           COMBINER_IRQ(3, 4)
 144
 145#define EXYNOS4_IRQ_SYSMMU_MDMA0_0      COMBINER_IRQ(4, 0)
 146#define EXYNOS4_IRQ_SYSMMU_SSS_0        COMBINER_IRQ(4, 1)
 147#define EXYNOS4_IRQ_SYSMMU_FIMC0_0      COMBINER_IRQ(4, 2)
 148#define EXYNOS4_IRQ_SYSMMU_FIMC1_0      COMBINER_IRQ(4, 3)
 149#define EXYNOS4_IRQ_SYSMMU_FIMC2_0      COMBINER_IRQ(4, 4)
 150#define EXYNOS4_IRQ_SYSMMU_FIMC3_0      COMBINER_IRQ(4, 5)
 151#define EXYNOS4_IRQ_SYSMMU_JPEG_0       COMBINER_IRQ(4, 6)
 152#define EXYNOS4_IRQ_SYSMMU_2D_0         COMBINER_IRQ(4, 7)
 153
 154#define EXYNOS4_IRQ_SYSMMU_ROTATOR_0    COMBINER_IRQ(5, 0)
 155#define EXYNOS4_IRQ_SYSMMU_MDMA1_0      COMBINER_IRQ(5, 1)
 156#define EXYNOS4_IRQ_SYSMMU_LCD0_M0_0    COMBINER_IRQ(5, 2)
 157#define EXYNOS4_IRQ_SYSMMU_LCD1_M1_0    COMBINER_IRQ(5, 3)
 158#define EXYNOS4_IRQ_SYSMMU_TV_M0_0      COMBINER_IRQ(5, 4)
 159#define EXYNOS4_IRQ_SYSMMU_MFC_M0_0     COMBINER_IRQ(5, 5)
 160#define EXYNOS4_IRQ_SYSMMU_MFC_M1_0     COMBINER_IRQ(5, 6)
 161#define EXYNOS4_IRQ_SYSMMU_PCIE_0       COMBINER_IRQ(5, 7)
 162
 163#define EXYNOS4_IRQ_SYSMMU_FIMC_LITE0_0 COMBINER_IRQ(16, 0)
 164#define EXYNOS4_IRQ_SYSMMU_FIMC_LITE1_0 COMBINER_IRQ(16, 1)
 165#define EXYNOS4_IRQ_SYSMMU_FIMC_ISP_0   COMBINER_IRQ(16, 2)
 166#define EXYNOS4_IRQ_SYSMMU_FIMC_DRC_0   COMBINER_IRQ(16, 3)
 167#define EXYNOS4_IRQ_SYSMMU_FIMC_FD_0    COMBINER_IRQ(16, 4)
 168#define EXYNOS4_IRQ_SYSMMU_FIMC_CX_0    COMBINER_IRQ(16, 5)
 169
 170#define EXYNOS4_IRQ_FIMD0_FIFO          COMBINER_IRQ(11, 0)
 171#define EXYNOS4_IRQ_FIMD0_VSYNC         COMBINER_IRQ(11, 1)
 172#define EXYNOS4_IRQ_FIMD0_SYSTEM        COMBINER_IRQ(11, 2)
 173
 174#define EXYNOS4210_MAX_COMBINER_NR      16
 175#define EXYNOS4212_MAX_COMBINER_NR      18
 176#define EXYNOS4412_MAX_COMBINER_NR      20
 177#define EXYNOS4_MAX_COMBINER_NR         EXYNOS4412_MAX_COMBINER_NR
 178
 179#define EXYNOS4_IRQ_GPIO1_NR_GROUPS     16
 180#define EXYNOS4_IRQ_GPIO2_NR_GROUPS     9
 181
 182/*
 183 * For Compatibility:
 184 * the default is for EXYNOS4, and
 185 * for exynos5, should be re-mapped at function
 186 */
 187
 188#define IRQ_TIMER0_VIC                  EXYNOS4_IRQ_TIMER0_VIC
 189#define IRQ_TIMER1_VIC                  EXYNOS4_IRQ_TIMER1_VIC
 190#define IRQ_TIMER2_VIC                  EXYNOS4_IRQ_TIMER2_VIC
 191#define IRQ_TIMER3_VIC                  EXYNOS4_IRQ_TIMER3_VIC
 192#define IRQ_TIMER4_VIC                  EXYNOS4_IRQ_TIMER4_VIC
 193
 194#define IRQ_WDT                         EXYNOS4_IRQ_WDT
 195#define IRQ_RTC_ALARM                   EXYNOS4_IRQ_RTC_ALARM
 196#define IRQ_RTC_TIC                     EXYNOS4_IRQ_RTC_TIC
 197#define IRQ_GPIO_XB                     EXYNOS4_IRQ_GPIO_XB
 198#define IRQ_GPIO_XA                     EXYNOS4_IRQ_GPIO_XA
 199
 200#define IRQ_IIC                         EXYNOS4_IRQ_IIC
 201#define IRQ_IIC1                        EXYNOS4_IRQ_IIC1
 202#define IRQ_IIC3                        EXYNOS4_IRQ_IIC3
 203#define IRQ_IIC5                        EXYNOS4_IRQ_IIC5
 204#define IRQ_IIC6                        EXYNOS4_IRQ_IIC6
 205#define IRQ_IIC7                        EXYNOS4_IRQ_IIC7
 206
 207#define IRQ_SPI0                        EXYNOS4_IRQ_SPI0
 208#define IRQ_SPI1                        EXYNOS4_IRQ_SPI1
 209#define IRQ_SPI2                        EXYNOS4_IRQ_SPI2
 210
 211#define IRQ_USB_HOST                    EXYNOS4_IRQ_USB_HOST
 212#define IRQ_OTG                         EXYNOS4_IRQ_USB_HSOTG
 213
 214#define IRQ_HSMMC0                      EXYNOS4_IRQ_HSMMC0
 215#define IRQ_HSMMC1                      EXYNOS4_IRQ_HSMMC1
 216#define IRQ_HSMMC2                      EXYNOS4_IRQ_HSMMC2
 217#define IRQ_HSMMC3                      EXYNOS4_IRQ_HSMMC3
 218
 219#define IRQ_MIPI_CSIS0                  EXYNOS4_IRQ_MIPI_CSIS0
 220
 221#define IRQ_ONENAND_AUDI                EXYNOS4_IRQ_ONENAND_AUDI
 222
 223#define IRQ_FIMC0                       EXYNOS4_IRQ_FIMC0
 224#define IRQ_FIMC1                       EXYNOS4_IRQ_FIMC1
 225#define IRQ_FIMC2                       EXYNOS4_IRQ_FIMC2
 226#define IRQ_FIMC3                       EXYNOS4_IRQ_FIMC3
 227#define IRQ_JPEG                        EXYNOS4_IRQ_JPEG
 228#define IRQ_2D                          EXYNOS4_IRQ_2D
 229
 230#define IRQ_MIXER                       EXYNOS4_IRQ_MIXER
 231#define IRQ_HDMI                        EXYNOS4_IRQ_HDMI
 232#define IRQ_IIC_HDMIPHY                 EXYNOS4_IRQ_IIC_HDMIPHY
 233#define IRQ_MFC                         EXYNOS4_IRQ_MFC
 234#define IRQ_SDO                         EXYNOS4_IRQ_SDO
 235
 236#define IRQ_I2S0                        EXYNOS4_IRQ_I2S0
 237
 238#define IRQ_ADC                         EXYNOS4_IRQ_ADC0
 239#define IRQ_TC                          EXYNOS4_IRQ_PEN0
 240
 241#define IRQ_KEYPAD                      EXYNOS4_IRQ_KEYPAD
 242
 243#define IRQ_FIMD0_FIFO                  EXYNOS4_IRQ_FIMD0_FIFO
 244#define IRQ_FIMD0_VSYNC                 EXYNOS4_IRQ_FIMD0_VSYNC
 245#define IRQ_FIMD0_SYSTEM                EXYNOS4_IRQ_FIMD0_SYSTEM
 246
 247#define IRQ_GPIO1_NR_GROUPS             EXYNOS4_IRQ_GPIO1_NR_GROUPS
 248#define IRQ_GPIO2_NR_GROUPS             EXYNOS4_IRQ_GPIO2_NR_GROUPS
 249
 250/* For EXYNOS5 SoCs */
 251
 252#define EXYNOS5_IRQ_MDMA0               IRQ_SPI(33)
 253#define EXYNOS5_IRQ_PDMA0               IRQ_SPI(34)
 254#define EXYNOS5_IRQ_PDMA1               IRQ_SPI(35)
 255#define EXYNOS5_IRQ_TIMER0_VIC          IRQ_SPI(36)
 256#define EXYNOS5_IRQ_TIMER1_VIC          IRQ_SPI(37)
 257#define EXYNOS5_IRQ_TIMER2_VIC          IRQ_SPI(38)
 258#define EXYNOS5_IRQ_TIMER3_VIC          IRQ_SPI(39)
 259#define EXYNOS5_IRQ_TIMER4_VIC          IRQ_SPI(40)
 260#define EXYNOS5_IRQ_RTIC                IRQ_SPI(41)
 261#define EXYNOS5_IRQ_WDT                 IRQ_SPI(42)
 262#define EXYNOS5_IRQ_RTC_ALARM           IRQ_SPI(43)
 263#define EXYNOS5_IRQ_RTC_TIC             IRQ_SPI(44)
 264#define EXYNOS5_IRQ_GPIO_XB             IRQ_SPI(45)
 265#define EXYNOS5_IRQ_GPIO_XA             IRQ_SPI(46)
 266#define EXYNOS5_IRQ_GPIO                IRQ_SPI(47)
 267#define EXYNOS5_IRQ_IEM_IEC             IRQ_SPI(48)
 268#define EXYNOS5_IRQ_IEM_APC             IRQ_SPI(49)
 269#define EXYNOS5_IRQ_GPIO_C2C            IRQ_SPI(50)
 270#define EXYNOS5_IRQ_IIC                 IRQ_SPI(56)
 271#define EXYNOS5_IRQ_IIC1                IRQ_SPI(57)
 272#define EXYNOS5_IRQ_IIC2                IRQ_SPI(58)
 273#define EXYNOS5_IRQ_IIC3                IRQ_SPI(59)
 274#define EXYNOS5_IRQ_IIC4                IRQ_SPI(60)
 275#define EXYNOS5_IRQ_IIC5                IRQ_SPI(61)
 276#define EXYNOS5_IRQ_IIC6                IRQ_SPI(62)
 277#define EXYNOS5_IRQ_IIC7                IRQ_SPI(63)
 278#define EXYNOS5_IRQ_IIC_HDMIPHY         IRQ_SPI(64)
 279#define EXYNOS5_IRQ_TMU                 IRQ_SPI(65)
 280#define EXYNOS5_IRQ_FIQ_0               IRQ_SPI(66)
 281#define EXYNOS5_IRQ_FIQ_1               IRQ_SPI(67)
 282#define EXYNOS5_IRQ_SPI0                IRQ_SPI(68)
 283#define EXYNOS5_IRQ_SPI1                IRQ_SPI(69)
 284#define EXYNOS5_IRQ_SPI2                IRQ_SPI(70)
 285#define EXYNOS5_IRQ_USB_HOST            IRQ_SPI(71)
 286#define EXYNOS5_IRQ_USB3_DRD            IRQ_SPI(72)
 287#define EXYNOS5_IRQ_MIPI_HSI            IRQ_SPI(73)
 288#define EXYNOS5_IRQ_USB_HSOTG           IRQ_SPI(74)
 289#define EXYNOS5_IRQ_HSMMC0              IRQ_SPI(75)
 290#define EXYNOS5_IRQ_HSMMC1              IRQ_SPI(76)
 291#define EXYNOS5_IRQ_HSMMC2              IRQ_SPI(77)
 292#define EXYNOS5_IRQ_HSMMC3              IRQ_SPI(78)
 293#define EXYNOS5_IRQ_MIPICSI0            IRQ_SPI(79)
 294#define EXYNOS5_IRQ_MIPICSI1            IRQ_SPI(80)
 295#define EXYNOS5_IRQ_EFNFCON_DMA_ABORT   IRQ_SPI(81)
 296#define EXYNOS5_IRQ_MIPIDSI0            IRQ_SPI(82)
 297#define EXYNOS5_IRQ_WDT_IOP             IRQ_SPI(83)
 298#define EXYNOS5_IRQ_ROTATOR             IRQ_SPI(84)
 299#define EXYNOS5_IRQ_GSC0                IRQ_SPI(85)
 300#define EXYNOS5_IRQ_GSC1                IRQ_SPI(86)
 301#define EXYNOS5_IRQ_GSC2                IRQ_SPI(87)
 302#define EXYNOS5_IRQ_GSC3                IRQ_SPI(88)
 303#define EXYNOS5_IRQ_JPEG                IRQ_SPI(89)
 304#define EXYNOS5_IRQ_EFNFCON_DMA         IRQ_SPI(90)
 305#define EXYNOS5_IRQ_2D                  IRQ_SPI(91)
 306#define EXYNOS5_IRQ_EFNFCON_0           IRQ_SPI(92)
 307#define EXYNOS5_IRQ_EFNFCON_1           IRQ_SPI(93)
 308#define EXYNOS5_IRQ_MIXER               IRQ_SPI(94)
 309#define EXYNOS5_IRQ_HDMI                IRQ_SPI(95)
 310#define EXYNOS5_IRQ_MFC                 IRQ_SPI(96)
 311#define EXYNOS5_IRQ_AUDIO_SS            IRQ_SPI(97)
 312#define EXYNOS5_IRQ_I2S0                IRQ_SPI(98)
 313#define EXYNOS5_IRQ_I2S1                IRQ_SPI(99)
 314#define EXYNOS5_IRQ_I2S2                IRQ_SPI(100)
 315#define EXYNOS5_IRQ_AC97                IRQ_SPI(101)
 316#define EXYNOS5_IRQ_PCM0                IRQ_SPI(102)
 317#define EXYNOS5_IRQ_PCM1                IRQ_SPI(103)
 318#define EXYNOS5_IRQ_PCM2                IRQ_SPI(104)
 319#define EXYNOS5_IRQ_SPDIF               IRQ_SPI(105)
 320#define EXYNOS5_IRQ_ADC0                IRQ_SPI(106)
 321#define EXYNOS5_IRQ_ADC1                IRQ_SPI(107)
 322#define EXYNOS5_IRQ_SATA_PHY            IRQ_SPI(108)
 323#define EXYNOS5_IRQ_SATA_PMEMREQ        IRQ_SPI(109)
 324#define EXYNOS5_IRQ_CAM_C               IRQ_SPI(110)
 325#define EXYNOS5_IRQ_EAGLE_PMU           IRQ_SPI(111)
 326#define EXYNOS5_IRQ_INTFEEDCTRL_SSS     IRQ_SPI(112)
 327#define EXYNOS5_IRQ_DP1_INTP1           IRQ_SPI(113)
 328#define EXYNOS5_IRQ_CEC                 IRQ_SPI(114)
 329#define EXYNOS5_IRQ_SATA                IRQ_SPI(115)
 330
 331#define EXYNOS5_IRQ_MMC44               IRQ_SPI(123)
 332#define EXYNOS5_IRQ_MDMA1               IRQ_SPI(124)
 333#define EXYNOS5_IRQ_FIMC_LITE0          IRQ_SPI(125)
 334#define EXYNOS5_IRQ_FIMC_LITE1          IRQ_SPI(126)
 335#define EXYNOS5_IRQ_RP_TIMER            IRQ_SPI(127)
 336
 337/* EXYNOS5440 */
 338
 339#define EXYNOS5440_IRQ_UART0            IRQ_SPI(2)
 340#define EXYNOS5440_IRQ_UART1            IRQ_SPI(3)
 341
 342#define EXYNOS5_IRQ_PMU                 COMBINER_IRQ(1, 2)
 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_LITE2_0      COMBINER_IRQ(3, 0)
 354#define EXYNOS5_IRQ_SYSMMU_LITE2_1      COMBINER_IRQ(3, 1)
 355#define EXYNOS5_IRQ_SYSMMU_FIMD1_0      COMBINER_IRQ(3, 2)
 356#define EXYNOS5_IRQ_SYSMMU_FIMD1_1      COMBINER_IRQ(3, 3)
 357#define EXYNOS5_IRQ_SYSMMU_LITE0_0      COMBINER_IRQ(3, 4)
 358#define EXYNOS5_IRQ_SYSMMU_LITE0_1      COMBINER_IRQ(3, 5)
 359#define EXYNOS5_IRQ_SYSMMU_SCALERPISP_0 COMBINER_IRQ(3, 6)
 360#define EXYNOS5_IRQ_SYSMMU_SCALERPISP_1 COMBINER_IRQ(3, 7)
 361
 362#define EXYNOS5_IRQ_SYSMMU_ROTATOR_0    COMBINER_IRQ(4, 0)
 363#define EXYNOS5_IRQ_SYSMMU_ROTATOR_1    COMBINER_IRQ(4, 1)
 364#define EXYNOS5_IRQ_SYSMMU_JPEG_0       COMBINER_IRQ(4, 2)
 365#define EXYNOS5_IRQ_SYSMMU_JPEG_1       COMBINER_IRQ(4, 3)
 366
 367#define EXYNOS5_IRQ_SYSMMU_FD_0         COMBINER_IRQ(5, 0)
 368#define EXYNOS5_IRQ_SYSMMU_FD_1         COMBINER_IRQ(5, 1)
 369#define EXYNOS5_IRQ_SYSMMU_SCALERCISP_0 COMBINER_IRQ(5, 2)
 370#define EXYNOS5_IRQ_SYSMMU_SCALERCISP_1 COMBINER_IRQ(5, 3)
 371#define EXYNOS5_IRQ_SYSMMU_MCUISP_0     COMBINER_IRQ(5, 4)
 372#define EXYNOS5_IRQ_SYSMMU_MCUISP_1     COMBINER_IRQ(5, 5)
 373#define EXYNOS5_IRQ_SYSMMU_3DNR_0       COMBINER_IRQ(5, 6)
 374#define EXYNOS5_IRQ_SYSMMU_3DNR_1       COMBINER_IRQ(5, 7)
 375
 376#define EXYNOS5_IRQ_SYSMMU_ARM_0        COMBINER_IRQ(6, 0)
 377#define EXYNOS5_IRQ_SYSMMU_ARM_1        COMBINER_IRQ(6, 1)
 378#define EXYNOS5_IRQ_SYSMMU_MFC_R_0      COMBINER_IRQ(6, 2)
 379#define EXYNOS5_IRQ_SYSMMU_MFC_R_1      COMBINER_IRQ(6, 3)
 380#define EXYNOS5_IRQ_SYSMMU_RTIC_0       COMBINER_IRQ(6, 4)
 381#define EXYNOS5_IRQ_SYSMMU_RTIC_1       COMBINER_IRQ(6, 5)
 382#define EXYNOS5_IRQ_SYSMMU_SSS_0        COMBINER_IRQ(6, 6)
 383#define EXYNOS5_IRQ_SYSMMU_SSS_1        COMBINER_IRQ(6, 7)
 384
 385#define EXYNOS5_IRQ_SYSMMU_MDMA0_0      COMBINER_IRQ(7, 0)
 386#define EXYNOS5_IRQ_SYSMMU_MDMA0_1      COMBINER_IRQ(7, 1)
 387#define EXYNOS5_IRQ_SYSMMU_MDMA1_0      COMBINER_IRQ(7, 2)
 388#define EXYNOS5_IRQ_SYSMMU_MDMA1_1      COMBINER_IRQ(7, 3)
 389#define EXYNOS5_IRQ_SYSMMU_TV_0         COMBINER_IRQ(7, 4)
 390#define EXYNOS5_IRQ_SYSMMU_TV_1         COMBINER_IRQ(7, 5)
 391
 392#define EXYNOS5_IRQ_SYSMMU_MFC_L_0      COMBINER_IRQ(8, 5)
 393#define EXYNOS5_IRQ_SYSMMU_MFC_L_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_MDMA1_ABORT         COMBINER_IRQ(13, 1)
 410
 411#define EXYNOS5_IRQ_MDMA0_ABORT         COMBINER_IRQ(15, 3)
 412
 413#define EXYNOS5_IRQ_FIMD1_FIFO          COMBINER_IRQ(18, 4)
 414#define EXYNOS5_IRQ_FIMD1_VSYNC         COMBINER_IRQ(18, 5)
 415#define EXYNOS5_IRQ_FIMD1_SYSTEM        COMBINER_IRQ(18, 6)
 416
 417#define EXYNOS5_IRQ_ARMIOP_GIC          COMBINER_IRQ(19, 0)
 418#define EXYNOS5_IRQ_ARMISP_GIC          COMBINER_IRQ(19, 1)
 419#define EXYNOS5_IRQ_IOP_GIC             COMBINER_IRQ(19, 3)
 420#define EXYNOS5_IRQ_ISP_GIC             COMBINER_IRQ(19, 4)
 421
 422#define EXYNOS5_IRQ_PMU_CPU1            COMBINER_IRQ(22, 4)
 423
 424#define EXYNOS5_IRQ_EINT0               COMBINER_IRQ(23, 0)
 425
 426#define EXYNOS5_IRQ_EINT1               COMBINER_IRQ(24, 0)
 427#define EXYNOS5_IRQ_SYSMMU_LITE1_0      COMBINER_IRQ(24, 1)
 428#define EXYNOS5_IRQ_SYSMMU_LITE1_1      COMBINER_IRQ(24, 2)
 429#define EXYNOS5_IRQ_SYSMMU_2D_0         COMBINER_IRQ(24, 5)
 430#define EXYNOS5_IRQ_SYSMMU_2D_1         COMBINER_IRQ(24, 6)
 431
 432#define EXYNOS5_IRQ_EINT2               COMBINER_IRQ(25, 0)
 433#define EXYNOS5_IRQ_EINT3               COMBINER_IRQ(25, 1)
 434
 435#define EXYNOS5_IRQ_EINT4               COMBINER_IRQ(26, 0)
 436#define EXYNOS5_IRQ_EINT5               COMBINER_IRQ(26, 1)
 437
 438#define EXYNOS5_IRQ_EINT6               COMBINER_IRQ(27, 0)
 439#define EXYNOS5_IRQ_EINT7               COMBINER_IRQ(27, 1)
 440
 441#define EXYNOS5_IRQ_EINT8               COMBINER_IRQ(28, 0)
 442#define EXYNOS5_IRQ_EINT9               COMBINER_IRQ(28, 1)
 443
 444#define EXYNOS5_IRQ_EINT10              COMBINER_IRQ(29, 0)
 445#define EXYNOS5_IRQ_EINT11              COMBINER_IRQ(29, 1)
 446
 447#define EXYNOS5_IRQ_EINT12              COMBINER_IRQ(30, 0)
 448#define EXYNOS5_IRQ_EINT13              COMBINER_IRQ(30, 1)
 449
 450#define EXYNOS5_IRQ_EINT14              COMBINER_IRQ(31, 0)
 451#define EXYNOS5_IRQ_EINT15              COMBINER_IRQ(31, 1)
 452
 453#define EXYNOS5_MAX_COMBINER_NR         32
 454
 455#define EXYNOS5_IRQ_GPIO1_NR_GROUPS     14
 456#define EXYNOS5_IRQ_GPIO2_NR_GROUPS     9
 457#define EXYNOS5_IRQ_GPIO3_NR_GROUPS     5
 458#define EXYNOS5_IRQ_GPIO4_NR_GROUPS     1
 459
 460#define MAX_COMBINER_NR                 (EXYNOS4_MAX_COMBINER_NR > EXYNOS5_MAX_COMBINER_NR ? \
 461                                        EXYNOS4_MAX_COMBINER_NR : EXYNOS5_MAX_COMBINER_NR)
 462
 463#define S5P_EINT_BASE1                  COMBINER_IRQ(MAX_COMBINER_NR, 0)
 464#define S5P_EINT_BASE2                  (S5P_EINT_BASE1 + 16)
 465#define S5P_GPIOINT_BASE                (S5P_EINT_BASE1 + 32)
 466#define IRQ_GPIO_END                    (S5P_GPIOINT_BASE + S5P_GPIOINT_COUNT)
 467#define IRQ_TIMER_BASE                  (IRQ_GPIO_END + 64)
 468
 469/* Set the default NR_IRQS */
 470#define EXYNOS_NR_IRQS                  (IRQ_TIMER_BASE + IRQ_TIMER_COUNT)
 471
 472#ifndef CONFIG_SPARSE_IRQ
 473#define NR_IRQS                         EXYNOS_NR_IRQS
 474#endif
 475
 476#endif /* __ASM_ARCH_IRQS_H */
 477