aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/intc-sh7372.c
diff options
context:
space:
mode:
authorKuninori Morimoto <morimoto.kuninori@renesas.com>2010-02-12 04:55:08 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-02-14 23:43:43 -0500
commitdeded43508f065c95af506d18b8309ba842c397e (patch)
tree4d8de6e7d6edd1857a7d48105e02ddb4ec130890 /arch/arm/mach-shmobile/intc-sh7372.c
parentaa18ef609b65a76e4531b09dd0c196be3e04eb94 (diff)
ARM: mach-shmobile: intc-sh7372 tidyup
This patch is based on Rev 0.5 manual Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile/intc-sh7372.c')
-rw-r--r--arch/arm/mach-shmobile/intc-sh7372.c90
1 files changed, 46 insertions, 44 deletions
diff --git a/arch/arm/mach-shmobile/intc-sh7372.c b/arch/arm/mach-shmobile/intc-sh7372.c
index c6e747f92462..c57a923f97a6 100644
--- a/arch/arm/mach-shmobile/intc-sh7372.c
+++ b/arch/arm/mach-shmobile/intc-sh7372.c
@@ -39,8 +39,7 @@ enum {
39 AP_ARM_IRQPMU, AP_ARM_COMMTX, AP_ARM_COMMRX, 39 AP_ARM_IRQPMU, AP_ARM_COMMTX, AP_ARM_COMMRX,
40 MFI_MFIM, MFI_MFIS, 40 MFI_MFIM, MFI_MFIS,
41 BBIF1, BBIF2, 41 BBIF1, BBIF2,
42 USBHSDMAC_USHDMI, 42 USBHSDMAC0_USHDMI,
43 USBHS_USHI0, USBHS_USHI1,
44 _3DG_SGX540, 43 _3DG_SGX540,
45 CMT1_CMT10, CMT1_CMT11, CMT1_CMT12, CMT1_CMT13, CMT2, CMT3, 44 CMT1_CMT10, CMT1_CMT11, CMT1_CMT12, CMT1_CMT13, CMT2, CMT3,
46 KEYSC_KEY, 45 KEYSC_KEY,
@@ -57,8 +56,8 @@ enum {
57 DDM, 56 DDM,
58 SDHI2_SDHI2I0, SDHI2_SDHI2I1, SDHI2_SDHI2I2, SDHI2_SDHI2I3, 57 SDHI2_SDHI2I0, SDHI2_SDHI2I1, SDHI2_SDHI2I2, SDHI2_SDHI2I3,
59 RWDT0, 58 RWDT0,
60 DMAC_1_DEI0, DMAC_1_DEI1, DMAC_1_DEI2, DMAC_1_DEI3, 59 DMAC1_1_DEI0, DMAC1_1_DEI1, DMAC1_1_DEI2, DMAC1_1_DEI3,
61 DMAC_2_DEI4, DMAC_2_DEI5, DMAC_2_DADERR, 60 DMAC1_2_DEI4, DMAC1_2_DEI5, DMAC1_2_DADERR,
62 DMAC2_1_DEI0, DMAC2_1_DEI1, DMAC2_1_DEI2, DMAC2_1_DEI3, 61 DMAC2_1_DEI0, DMAC2_1_DEI1, DMAC2_1_DEI2, DMAC2_1_DEI3,
63 DMAC2_2_DEI4, DMAC2_2_DEI5, DMAC2_2_DADERR, 62 DMAC2_2_DEI4, DMAC2_2_DEI5, DMAC2_2_DADERR,
64 DMAC3_1_DEI0, DMAC3_1_DEI1, DMAC3_1_DEI2, DMAC3_1_DEI3, 63 DMAC3_1_DEI0, DMAC3_1_DEI1, DMAC3_1_DEI2, DMAC3_1_DEI3,
@@ -69,7 +68,7 @@ enum {
69 FSI, FMSI, 68 FSI, FMSI,
70 MIPI_HSI, 69 MIPI_HSI,
71 IPMMU_IPMMUD, 70 IPMMU_IPMMUD,
72 CEC_CEC_1, CEC_CEC_2, 71 CEC_1, CEC_2,
73 AP_ARM_CTIIRQ, AP_ARM_DMAEXTERRIRQ, AP_ARM_DMAIRQ, AP_ARM_DMASIRQ, 72 AP_ARM_CTIIRQ, AP_ARM_DMAEXTERRIRQ, AP_ARM_DMAIRQ, AP_ARM_DMASIRQ,
74 MFIS2, 73 MFIS2,
75 CPORTR2S, 74 CPORTR2S,
@@ -79,14 +78,14 @@ enum {
79 IIC3_ALI3, IIC3_TACKI3, IIC3_WAITI3, IIC3_DTEI3, 78 IIC3_ALI3, IIC3_TACKI3, IIC3_WAITI3, IIC3_DTEI3,
80 USB0_USB0I1, USB0_USB0I0, 79 USB0_USB0I1, USB0_USB0I0,
81 USB1_USB1I1, USB1_USB1I0, 80 USB1_USB1I1, USB1_USB1I0,
82 USHSDMI, 81 USBHSDMAC1_USHDMI,
83 82
84 /* interrupt groups INTCA */ 83 /* interrupt groups INTCA */
85 DMAC_1, DMAC_2, DMAC2_1, DMAC2_2, DMAC3_1, DMAC3_2, SHWYSTAT, 84 DMAC1_1, DMAC1_2, DMAC2_1, DMAC2_2, DMAC3_1, DMAC3_2, SHWYSTAT,
86 AP_ARM1, AP_ARM2, USBHS, SPU2, FLCTL, IIC1, SDHI0, SDHI1, SDHI2 85 AP_ARM1, AP_ARM2, SPU2, FLCTL, IIC1, SDHI0, SDHI1, SDHI2
87}; 86};
88 87
89static struct intc_vect intca_vectors[] = { 88static struct intc_vect intca_vectors[] __initdata = {
90 INTC_VECT(IRQ0A, 0x0200), INTC_VECT(IRQ1A, 0x0220), 89 INTC_VECT(IRQ0A, 0x0200), INTC_VECT(IRQ1A, 0x0220),
91 INTC_VECT(IRQ2A, 0x0240), INTC_VECT(IRQ3A, 0x0260), 90 INTC_VECT(IRQ2A, 0x0240), INTC_VECT(IRQ3A, 0x0260),
92 INTC_VECT(IRQ4A, 0x0280), INTC_VECT(IRQ5A, 0x02a0), 91 INTC_VECT(IRQ4A, 0x0280), INTC_VECT(IRQ5A, 0x02a0),
@@ -111,8 +110,7 @@ static struct intc_vect intca_vectors[] = {
111 INTC_VECT(AP_ARM_COMMRX, 0x0860), 110 INTC_VECT(AP_ARM_COMMRX, 0x0860),
112 INTC_VECT(MFI_MFIM, 0x0900), INTC_VECT(MFI_MFIS, 0x0920), 111 INTC_VECT(MFI_MFIM, 0x0900), INTC_VECT(MFI_MFIS, 0x0920),
113 INTC_VECT(BBIF1, 0x0940), INTC_VECT(BBIF2, 0x0960), 112 INTC_VECT(BBIF1, 0x0940), INTC_VECT(BBIF2, 0x0960),
114 INTC_VECT(USBHSDMAC_USHDMI, 0x0a00), 113 INTC_VECT(USBHSDMAC0_USHDMI, 0x0a00),
115 INTC_VECT(USBHS_USHI0, 0x0a20), INTC_VECT(USBHS_USHI1, 0x0a40),
116 INTC_VECT(_3DG_SGX540, 0x0a60), 114 INTC_VECT(_3DG_SGX540, 0x0a60),
117 INTC_VECT(CMT1_CMT10, 0x0b00), INTC_VECT(CMT1_CMT11, 0x0b20), 115 INTC_VECT(CMT1_CMT10, 0x0b00), INTC_VECT(CMT1_CMT11, 0x0b20),
118 INTC_VECT(CMT1_CMT12, 0x0b40), INTC_VECT(CMT1_CMT13, 0x0b60), 116 INTC_VECT(CMT1_CMT12, 0x0b40), INTC_VECT(CMT1_CMT13, 0x0b60),
@@ -137,10 +135,10 @@ static struct intc_vect intca_vectors[] = {
137 INTC_VECT(SDHI2_SDHI2I0, 0x1200), INTC_VECT(SDHI2_SDHI2I1, 0x1220), 135 INTC_VECT(SDHI2_SDHI2I0, 0x1200), INTC_VECT(SDHI2_SDHI2I1, 0x1220),
138 INTC_VECT(SDHI2_SDHI2I2, 0x1240), INTC_VECT(SDHI2_SDHI2I3, 0x1260), 136 INTC_VECT(SDHI2_SDHI2I2, 0x1240), INTC_VECT(SDHI2_SDHI2I3, 0x1260),
139 INTC_VECT(RWDT0, 0x1280), 137 INTC_VECT(RWDT0, 0x1280),
140 INTC_VECT(DMAC_1_DEI0, 0x2000), INTC_VECT(DMAC_1_DEI1, 0x2020), 138 INTC_VECT(DMAC1_1_DEI0, 0x2000), INTC_VECT(DMAC1_1_DEI1, 0x2020),
141 INTC_VECT(DMAC_1_DEI2, 0x2040), INTC_VECT(DMAC_1_DEI3, 0x2060), 139 INTC_VECT(DMAC1_1_DEI2, 0x2040), INTC_VECT(DMAC1_1_DEI3, 0x2060),
142 INTC_VECT(DMAC_2_DEI4, 0x2080), INTC_VECT(DMAC_2_DEI5, 0x20a0), 140 INTC_VECT(DMAC1_2_DEI4, 0x2080), INTC_VECT(DMAC1_2_DEI5, 0x20a0),
143 INTC_VECT(DMAC_2_DADERR, 0x20c0), 141 INTC_VECT(DMAC1_2_DADERR, 0x20c0),
144 INTC_VECT(DMAC2_1_DEI0, 0x2100), INTC_VECT(DMAC2_1_DEI1, 0x2120), 142 INTC_VECT(DMAC2_1_DEI0, 0x2100), INTC_VECT(DMAC2_1_DEI1, 0x2120),
145 INTC_VECT(DMAC2_1_DEI2, 0x2140), INTC_VECT(DMAC2_1_DEI3, 0x2160), 143 INTC_VECT(DMAC2_1_DEI2, 0x2140), INTC_VECT(DMAC2_1_DEI3, 0x2160),
146 INTC_VECT(DMAC2_2_DEI4, 0x2180), INTC_VECT(DMAC2_2_DEI5, 0x21a0), 144 INTC_VECT(DMAC2_2_DEI4, 0x2180), INTC_VECT(DMAC2_2_DEI5, 0x21a0),
@@ -149,7 +147,7 @@ static struct intc_vect intca_vectors[] = {
149 INTC_VECT(DMAC3_1_DEI2, 0x2240), INTC_VECT(DMAC3_1_DEI3, 0x2260), 147 INTC_VECT(DMAC3_1_DEI2, 0x2240), INTC_VECT(DMAC3_1_DEI3, 0x2260),
150 INTC_VECT(DMAC3_2_DEI4, 0x2280), INTC_VECT(DMAC3_2_DEI5, 0x22a0), 148 INTC_VECT(DMAC3_2_DEI4, 0x2280), INTC_VECT(DMAC3_2_DEI5, 0x22a0),
151 INTC_VECT(DMAC3_2_DADERR, 0x22c0), 149 INTC_VECT(DMAC3_2_DADERR, 0x22c0),
152 INTC_VECT(SHWYSTAT_RT, 0x1300), INTC_VECT(SHWYSTAT_HS, 0x1d20), 150 INTC_VECT(SHWYSTAT_RT, 0x1300), INTC_VECT(SHWYSTAT_HS, 0x1320),
153 INTC_VECT(SHWYSTAT_COM, 0x1340), 151 INTC_VECT(SHWYSTAT_COM, 0x1340),
154 INTC_VECT(HDMI, 0x17e0), 152 INTC_VECT(HDMI, 0x17e0),
155 INTC_VECT(SPU2_SPU0, 0x1800), INTC_VECT(SPU2_SPU1, 0x1820), 153 INTC_VECT(SPU2_SPU0, 0x1800), INTC_VECT(SPU2_SPU1, 0x1820),
@@ -157,7 +155,7 @@ static struct intc_vect intca_vectors[] = {
157 INTC_VECT(FMSI, 0x1860), 155 INTC_VECT(FMSI, 0x1860),
158 INTC_VECT(MIPI_HSI, 0x18e0), 156 INTC_VECT(MIPI_HSI, 0x18e0),
159 INTC_VECT(IPMMU_IPMMUD, 0x1920), 157 INTC_VECT(IPMMU_IPMMUD, 0x1920),
160 INTC_VECT(CEC_CEC_1, 0x1940), INTC_VECT(CEC_CEC_2, 0x1960), 158 INTC_VECT(CEC_1, 0x1940), INTC_VECT(CEC_2, 0x1960),
161 INTC_VECT(AP_ARM_CTIIRQ, 0x1980), 159 INTC_VECT(AP_ARM_CTIIRQ, 0x1980),
162 INTC_VECT(AP_ARM_DMAEXTERRIRQ, 0x19a0), 160 INTC_VECT(AP_ARM_DMAEXTERRIRQ, 0x19a0),
163 INTC_VECT(AP_ARM_DMAIRQ, 0x19c0), 161 INTC_VECT(AP_ARM_DMAIRQ, 0x19c0),
@@ -172,14 +170,14 @@ static struct intc_vect intca_vectors[] = {
172 INTC_VECT(IIC3_WAITI3, 0x1bc0), INTC_VECT(IIC3_DTEI3, 0x1be0), 170 INTC_VECT(IIC3_WAITI3, 0x1bc0), INTC_VECT(IIC3_DTEI3, 0x1be0),
173 INTC_VECT(USB0_USB0I1, 0x1c80), INTC_VECT(USB0_USB0I0, 0x1ca0), 171 INTC_VECT(USB0_USB0I1, 0x1c80), INTC_VECT(USB0_USB0I0, 0x1ca0),
174 INTC_VECT(USB1_USB1I1, 0x1cc0), INTC_VECT(USB1_USB1I0, 0x1ce0), 172 INTC_VECT(USB1_USB1I1, 0x1cc0), INTC_VECT(USB1_USB1I0, 0x1ce0),
175 INTC_VECT(USHSDMI, 0x1d00), 173 INTC_VECT(USBHSDMAC1_USHDMI, 0x1d00),
176}; 174};
177 175
178static struct intc_group intca_groups[] __initdata = { 176static struct intc_group intca_groups[] __initdata = {
179 INTC_GROUP(DMAC_1, DMAC_1_DEI0, 177 INTC_GROUP(DMAC1_1, DMAC1_1_DEI0,
180 DMAC_1_DEI1, DMAC_1_DEI2, DMAC_1_DEI3), 178 DMAC1_1_DEI1, DMAC1_1_DEI2, DMAC1_1_DEI3),
181 INTC_GROUP(DMAC_2, DMAC_2_DEI4, 179 INTC_GROUP(DMAC1_2, DMAC1_2_DEI4,
182 DMAC_2_DEI5, DMAC_2_DADERR), 180 DMAC1_2_DEI5, DMAC1_2_DADERR),
183 INTC_GROUP(DMAC2_1, DMAC2_1_DEI0, 181 INTC_GROUP(DMAC2_1, DMAC2_1_DEI0,
184 DMAC2_1_DEI1, DMAC2_1_DEI2, DMAC2_1_DEI3), 182 DMAC2_1_DEI1, DMAC2_1_DEI2, DMAC2_1_DEI3),
185 INTC_GROUP(DMAC2_2, DMAC2_2_DEI4, 183 INTC_GROUP(DMAC2_2, DMAC2_2_DEI4,
@@ -188,8 +186,9 @@ static struct intc_group intca_groups[] __initdata = {
188 DMAC3_1_DEI1, DMAC3_1_DEI2, DMAC3_1_DEI3), 186 DMAC3_1_DEI1, DMAC3_1_DEI2, DMAC3_1_DEI3),
189 INTC_GROUP(DMAC3_2, DMAC3_2_DEI4, 187 INTC_GROUP(DMAC3_2, DMAC3_2_DEI4,
190 DMAC3_2_DEI5, DMAC3_2_DADERR), 188 DMAC3_2_DEI5, DMAC3_2_DADERR),
191 INTC_GROUP(AP_ARM1, AP_ARM_IRQPMU, AP_ARM_COMMTX, AP_ARM_COMMTX), 189 INTC_GROUP(AP_ARM1, AP_ARM_IRQPMU, AP_ARM_COMMTX, AP_ARM_COMMRX),
192 INTC_GROUP(USBHS, USBHS_USHI0, USBHS_USHI1), 190 INTC_GROUP(AP_ARM2, AP_ARM_CTIIRQ, AP_ARM_DMAEXTERRIRQ,
191 AP_ARM_DMAIRQ, AP_ARM_DMASIRQ),
193 INTC_GROUP(SPU2, SPU2_SPU0, SPU2_SPU1), 192 INTC_GROUP(SPU2, SPU2_SPU0, SPU2_SPU1),
194 INTC_GROUP(FLCTL, FLCTL_FLSTEI, FLCTL_FLTENDI, 193 INTC_GROUP(FLCTL, FLCTL_FLSTEI, FLCTL_FLTENDI,
195 FLCTL_FLTREQ0I, FLCTL_FLTREQ1I), 194 FLCTL_FLTREQ0I, FLCTL_FLTREQ1I),
@@ -203,7 +202,7 @@ static struct intc_group intca_groups[] __initdata = {
203 INTC_GROUP(SHWYSTAT, SHWYSTAT_RT, SHWYSTAT_HS, SHWYSTAT_COM), 202 INTC_GROUP(SHWYSTAT, SHWYSTAT_RT, SHWYSTAT_HS, SHWYSTAT_COM),
204}; 203};
205 204
206static struct intc_mask_reg intca_mask_registers[] = { 205static struct intc_mask_reg intca_mask_registers[] __initdata = {
207 { 0xe6900040, 0xe6900060, 8, /* INTMSK00A / INTMSKCLR00A */ 206 { 0xe6900040, 0xe6900060, 8, /* INTMSK00A / INTMSKCLR00A */
208 { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } }, 207 { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } },
209 { 0xe6900044, 0xe6900064, 8, /* INTMSK10A / INTMSKCLR10A */ 208 { 0xe6900044, 0xe6900064, 8, /* INTMSK10A / INTMSKCLR10A */
@@ -218,7 +217,7 @@ static struct intc_mask_reg intca_mask_registers[] = {
218 AP_ARM_IRQPMU, 0, AP_ARM_COMMTX, AP_ARM_COMMRX } }, 217 AP_ARM_IRQPMU, 0, AP_ARM_COMMTX, AP_ARM_COMMRX } },
219 { 0xe6940084, 0xe69400c4, 8, /* IMR1A / IMCR1A */ 218 { 0xe6940084, 0xe69400c4, 8, /* IMR1A / IMCR1A */
220 { 0, CRYPT_STD, DIRC, 0, 219 { 0, CRYPT_STD, DIRC, 0,
221 DMAC_1_DEI3, DMAC_1_DEI2, DMAC_1_DEI1, DMAC_1_DEI0 } }, 220 DMAC1_1_DEI3, DMAC1_1_DEI2, DMAC1_1_DEI1, DMAC1_1_DEI0 } },
222 { 0xe6940088, 0xe69400c8, 8, /* IMR2A / IMCR2A */ 221 { 0xe6940088, 0xe69400c8, 8, /* IMR2A / IMCR2A */
223 { 0, 0, 0, 0, 222 { 0, 0, 0, 0,
224 BBIF1, BBIF2, MFI_MFIS, MFI_MFIM } }, 223 BBIF1, BBIF2, MFI_MFIS, MFI_MFIM } },
@@ -229,7 +228,7 @@ static struct intc_mask_reg intca_mask_registers[] = {
229 { DDM, 0, 0, 0, 228 { DDM, 0, 0, 0,
230 0, 0, 0, 0 } }, 229 0, 0, 0, 0 } },
231 { 0xe6940094, 0xe69400d4, 8, /* IMR5A / IMCR5A */ 230 { 0xe6940094, 0xe69400d4, 8, /* IMR5A / IMCR5A */
232 { KEYSC_KEY, DMAC_2_DADERR, DMAC_2_DEI5, DMAC_2_DEI4, 231 { KEYSC_KEY, DMAC1_2_DADERR, DMAC1_2_DEI5, DMAC1_2_DEI4,
233 SCIFA3, SCIFA2, SCIFA1, SCIFA0 } }, 232 SCIFA3, SCIFA2, SCIFA1, SCIFA0 } },
234 { 0xe6940098, 0xe69400d8, 8, /* IMR6A / IMCR6A */ 233 { 0xe6940098, 0xe69400d8, 8, /* IMR6A / IMCR6A */
235 { SCIFB, SCIFA5, SCIFA4, MSIOF1, 234 { SCIFB, SCIFA5, SCIFA4, MSIOF1,
@@ -239,7 +238,7 @@ static struct intc_mask_reg intca_mask_registers[] = {
239 FLCTL_FLTREQ1I, FLCTL_FLTREQ0I, FLCTL_FLTENDI, FLCTL_FLSTEI } }, 238 FLCTL_FLTREQ1I, FLCTL_FLTREQ0I, FLCTL_FLTENDI, FLCTL_FLSTEI } },
240 { 0xe69400a0, 0xe69400e0, 8, /* IMR8A / IMCR8A */ 239 { 0xe69400a0, 0xe69400e0, 8, /* IMR8A / IMCR8A */
241 { 0, SDHI1_SDHI1I2, SDHI1_SDHI1I1, SDHI1_SDHI1I0, 240 { 0, SDHI1_SDHI1I2, SDHI1_SDHI1I1, SDHI1_SDHI1I0,
242 TTI20, USBHSDMAC_USHDMI, 0, 0 } }, 241 TTI20, USBHSDMAC0_USHDMI, 0, 0 } },
243 { 0xe69400a4, 0xe69400e4, 8, /* IMR9A / IMCR9A */ 242 { 0xe69400a4, 0xe69400e4, 8, /* IMR9A / IMCR9A */
244 { CMT1_CMT13, CMT1_CMT12, CMT1_CMT11, CMT1_CMT10, 243 { CMT1_CMT13, CMT1_CMT12, CMT1_CMT11, CMT1_CMT10,
245 CMT2, 0, 0, _3DG_SGX540 } }, 244 CMT2, 0, 0, _3DG_SGX540 } },
@@ -265,7 +264,7 @@ static struct intc_mask_reg intca_mask_registers[] = {
265 { SPU2_SPU0, SPU2_SPU1, FSI, FMSI, 264 { SPU2_SPU0, SPU2_SPU1, FSI, FMSI,
266 0, 0, 0, MIPI_HSI } }, 265 0, 0, 0, MIPI_HSI } },
267 { 0xe6950098, 0xe69500d8, 8, /* IMR6A3 / IMCR6A3 */ 266 { 0xe6950098, 0xe69500d8, 8, /* IMR6A3 / IMCR6A3 */
268 { 0, IPMMU_IPMMUD, CEC_CEC_1, CEC_CEC_2, 267 { 0, IPMMU_IPMMUD, CEC_1, CEC_2,
269 AP_ARM_CTIIRQ, AP_ARM_DMAEXTERRIRQ, 268 AP_ARM_CTIIRQ, AP_ARM_DMAEXTERRIRQ,
270 AP_ARM_DMAIRQ, AP_ARM_DMASIRQ } }, 269 AP_ARM_DMAIRQ, AP_ARM_DMASIRQ } },
271 { 0xe695009c, 0xe69500dc, 8, /* IMR7A3 / IMCR7A3 */ 270 { 0xe695009c, 0xe69500dc, 8, /* IMR7A3 / IMCR7A3 */
@@ -278,16 +277,16 @@ static struct intc_mask_reg intca_mask_registers[] = {
278 { 0, 0, 0, 0, 277 { 0, 0, 0, 0,
279 USB0_USB0I1, USB0_USB0I0, USB1_USB1I1, USB1_USB1I0 } }, 278 USB0_USB0I1, USB0_USB0I0, USB1_USB1I1, USB1_USB1I0 } },
280 { 0xe69500a8, 0xe69500e8, 8, /* IMR10A3 / IMCR10A3 */ 279 { 0xe69500a8, 0xe69500e8, 8, /* IMR10A3 / IMCR10A3 */
281 { USBHSDMAC_USHDMI, 0, 0, 0, 280 { USBHSDMAC1_USHDMI, 0, 0, 0,
282 0, 0, 0, 0 } }, 281 0, 0, 0, 0 } },
283}; 282};
284 283
285static struct intc_prio_reg intca_prio_registers[] = { 284static struct intc_prio_reg intca_prio_registers[] __initdata = {
286 { 0xe6900010, 0, 32, 4, /* INTPRI00A */ 285 { 0xe6900010, 0, 32, 4, /* INTPRI00A */
287 { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } }, 286 { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } },
288 { 0xe6900014, 0, 32, 4, /* INTPRI10A */ 287 { 0xe6900014, 0, 32, 4, /* INTPRI10A */
289 { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } }, 288 { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } },
290 { 0xe6900018, 0, 32, 4, /* INTPRI10A */ 289 { 0xe6900018, 0, 32, 4, /* INTPRI20A */
291 { IRQ16A, IRQ17A, IRQ18A, IRQ19A, IRQ20A, IRQ21A, IRQ22A, IRQ23A } }, 290 { IRQ16A, IRQ17A, IRQ18A, IRQ19A, IRQ20A, IRQ21A, IRQ22A, IRQ23A } },
292 { 0xe690001c, 0, 32, 4, /* INTPRI30A */ 291 { 0xe690001c, 0, 32, 4, /* INTPRI30A */
293 { IRQ24A, IRQ25A, IRQ26A, IRQ27A, IRQ28A, IRQ29A, IRQ30A, IRQ31A } }, 292 { IRQ24A, IRQ25A, IRQ26A, IRQ27A, IRQ28A, IRQ29A, IRQ30A, IRQ31A } },
@@ -298,16 +297,18 @@ static struct intc_prio_reg intca_prio_registers[] = {
298 CMT1_CMT11, AP_ARM1 } }, 297 CMT1_CMT11, AP_ARM1 } },
299 { 0xe694000c, 0, 16, 4, /* IPRDA */ { 0, 0, 298 { 0xe694000c, 0, 16, 4, /* IPRDA */ { 0, 0,
300 CMT1_CMT12, 0 } }, 299 CMT1_CMT12, 0 } },
301 { 0xe6940010, 0, 16, 4, /* IPREA */ { DMAC_1, MFI_MFIS, 300 { 0xe6940010, 0, 16, 4, /* IPREA */ { DMAC1_1, MFI_MFIS,
302 MFI_MFIM, 0 } }, 301 MFI_MFIM, 0 } },
303 { 0xe6940014, 0, 16, 4, /* IPRFA */ { KEYSC_KEY, DMAC_2, 302 { 0xe6940014, 0, 16, 4, /* IPRFA */ { KEYSC_KEY, DMAC1_2,
304 _3DG_SGX540, CMT1_CMT10 } }, 303 _3DG_SGX540, CMT1_CMT10 } },
305 { 0xe6940018, 0, 16, 4, /* IPRGA */ { SCIFA0, SCIFA1, 304 { 0xe6940018, 0, 16, 4, /* IPRGA */ { SCIFA0, SCIFA1,
306 SCIFA2, SCIFA3 } }, 305 SCIFA2, SCIFA3 } },
307 { 0xe694001c, 0, 16, 4, /* IPRGH */ { MSIOF2, USBHSDMAC_USHDMI, 306 { 0xe694001c, 0, 16, 4, /* IPRGH */ { MSIOF2, USBHSDMAC0_USHDMI,
308 FLCTL, SDHI0 } }, 307 FLCTL, SDHI0 } },
309 { 0xe6940020, 0, 16, 4, /* IPRIA */ { MSIOF1, SCIFA4, 0, IIC1 } }, 308 { 0xe6940020, 0, 16, 4, /* IPRIA */ { MSIOF1, SCIFA4,
310 { 0xe6940024, 0, 16, 4, /* IPRJA */ { DMAC2_1, DMAC2_2, 0, TTI20 } }, 309 0/* MSU */, IIC1 } },
310 { 0xe6940024, 0, 16, 4, /* IPRJA */ { DMAC2_1, DMAC2_2,
311 0/* MSUG */, TTI20 } },
311 { 0xe6940028, 0, 16, 4, /* IPRKA */ { 0, CMT1_CMT13, IRREM, SDHI1 } }, 312 { 0xe6940028, 0, 16, 4, /* IPRKA */ { 0, CMT1_CMT13, IRREM, SDHI1 } },
312 { 0xe694002c, 0, 16, 4, /* IPRLA */ { TPU0, 0, 0, 0 } }, 313 { 0xe694002c, 0, 16, 4, /* IPRLA */ { TPU0, 0, 0, 0 } },
313 { 0xe6940030, 0, 16, 4, /* IPRMA */ { 0, CMT3, 0, RWDT0 } }, 314 { 0xe6940030, 0, 16, 4, /* IPRMA */ { 0, CMT3, 0, RWDT0 } },
@@ -318,7 +319,7 @@ static struct intc_prio_reg intca_prio_registers[] = {
318 { 0xe6950028, 0, 16, 4, /* IPRKA3 */ { SPU2, 0, FSI, FMSI } }, 319 { 0xe6950028, 0, 16, 4, /* IPRKA3 */ { SPU2, 0, FSI, FMSI } },
319 { 0xe695002c, 0, 16, 4, /* IPRLA3 */ { 0, 0, 0, MIPI_HSI } }, 320 { 0xe695002c, 0, 16, 4, /* IPRLA3 */ { 0, 0, 0, MIPI_HSI } },
320 { 0xe6950030, 0, 16, 4, /* IPRMA3 */ { IPMMU_IPMMUD, 0, 321 { 0xe6950030, 0, 16, 4, /* IPRMA3 */ { IPMMU_IPMMUD, 0,
321 CEC_CEC_1, CEC_CEC_2 } }, 322 CEC_1, CEC_2 } },
322 { 0xe6950034, 0, 16, 4, /* IPRNA3 */ { AP_ARM2, 0, 0, 0 } }, 323 { 0xe6950034, 0, 16, 4, /* IPRNA3 */ { AP_ARM2, 0, 0, 0 } },
323 { 0xe6950038, 0, 16, 4, /* IPROA3 */ { MFIS2, CPORTR2S, 324 { 0xe6950038, 0, 16, 4, /* IPROA3 */ { MFIS2, CPORTR2S,
324 CMT14, CMT15 } }, 325 CMT14, CMT15 } },
@@ -328,20 +329,21 @@ static struct intc_prio_reg intca_prio_registers[] = {
328 IIC4_WAITI4, IIC4_DTEI4 } }, 329 IIC4_WAITI4, IIC4_DTEI4 } },
329 { 0xe6940044, 0, 16, 4, /* IPRRA3 */ { IIC3_ALI3, IIC3_TACKI3, 330 { 0xe6940044, 0, 16, 4, /* IPRRA3 */ { IIC3_ALI3, IIC3_TACKI3,
330 IIC3_WAITI3, IIC3_DTEI3 } }, 331 IIC3_WAITI3, IIC3_DTEI3 } },
331 { 0xe6940048, 0, 16, 4, /* IPRSA3 */ { 0, 0, 0, 0 } }, 332 { 0xe6940048, 0, 16, 4, /* IPRSA3 */ { 0/*ERI*/, 0/*RXI*/,
333 0/*TXI*/, 0/*TEI*/} },
332 { 0xe694004c, 0, 16, 4, /* IPRTA3 */ { USB0_USB0I1, USB0_USB0I0, 334 { 0xe694004c, 0, 16, 4, /* IPRTA3 */ { USB0_USB0I1, USB0_USB0I0,
333 USB1_USB1I1, USB1_USB1I0 } }, 335 USB1_USB1I1, USB1_USB1I0 } },
334 { 0xe6940050, 0, 16, 4, /* IPRUA3 */ { USBHSDMAC_USHDMI, 0, 0, 0 } }, 336 { 0xe6940050, 0, 16, 4, /* IPRUA3 */ { USBHSDMAC1_USHDMI, 0, 0, 0 } },
335}; 337};
336 338
337static struct intc_sense_reg intca_sense_registers[] __initdata = { 339static struct intc_sense_reg intca_sense_registers[] __initdata = {
338 { 0xe6900000, 16, 2, /* ICR1A */ 340 { 0xe6900000, 32, 4, /* ICR1A */
339 { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } }, 341 { IRQ0A, IRQ1A, IRQ2A, IRQ3A, IRQ4A, IRQ5A, IRQ6A, IRQ7A } },
340 { 0xe6900004, 16, 2, /* ICR2A */ 342 { 0xe6900004, 32, 4, /* ICR2A */
341 { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } }, 343 { IRQ8A, IRQ9A, IRQ10A, IRQ11A, IRQ12A, IRQ13A, IRQ14A, IRQ15A } },
342 { 0xe6900008, 16, 2, /* ICR3A */ 344 { 0xe6900008, 32, 4, /* ICR3A */
343 { IRQ16A, IRQ17A, IRQ18A, IRQ19A, IRQ20A, IRQ21A, IRQ22A, IRQ23A } }, 345 { IRQ16A, IRQ17A, IRQ18A, IRQ19A, IRQ20A, IRQ21A, IRQ22A, IRQ23A } },
344 { 0xe690000c, 16, 2, /* ICR4A */ 346 { 0xe690000c, 32, 4, /* ICR4A */
345 { IRQ24A, IRQ25A, IRQ26A, IRQ27A, IRQ28A, IRQ29A, IRQ30A, IRQ31A } }, 347 { IRQ24A, IRQ25A, IRQ26A, IRQ27A, IRQ28A, IRQ29A, IRQ30A, IRQ31A } },
346}; 348};
347 349