4 * Copyright (C) 2006 - 2008 Paul Mundt
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
10 #include <linux/platform_device.h>
11 #include <linux/init.h>
12 #include <linux/serial.h>
13 #include <linux/serial_sci.h>
14 #include <linux/sh_timer.h>
17 static struct plat_sci_port scif0_platform_data
= {
18 .mapbase
= 0xff923000,
19 .flags
= UPF_BOOT_AUTOCONF
,
21 .irqs
= { 61, 61, 61, 61 },
24 static struct platform_device scif0_device
= {
28 .platform_data
= &scif0_platform_data
,
32 static struct plat_sci_port scif1_platform_data
= {
33 .mapbase
= 0xff924000,
34 .flags
= UPF_BOOT_AUTOCONF
,
36 .irqs
= { 62, 62, 62, 62 },
39 static struct platform_device scif1_device
= {
43 .platform_data
= &scif1_platform_data
,
47 static struct plat_sci_port scif2_platform_data
= {
48 .mapbase
= 0xff925000,
49 .flags
= UPF_BOOT_AUTOCONF
,
51 .irqs
= { 63, 63, 63, 63 },
54 static struct platform_device scif2_device
= {
58 .platform_data
= &scif2_platform_data
,
62 static struct plat_sci_port scif3_platform_data
= {
63 .mapbase
= 0xff926000,
64 .flags
= UPF_BOOT_AUTOCONF
,
66 .irqs
= { 64, 64, 64, 64 },
69 static struct platform_device scif3_device
= {
73 .platform_data
= &scif3_platform_data
,
77 static struct plat_sci_port scif4_platform_data
= {
78 .mapbase
= 0xff927000,
79 .flags
= UPF_BOOT_AUTOCONF
,
81 .irqs
= { 65, 65, 65, 65 },
84 static struct platform_device scif4_device
= {
88 .platform_data
= &scif4_platform_data
,
92 static struct plat_sci_port scif5_platform_data
= {
93 .mapbase
= 0xff928000,
94 .flags
= UPF_BOOT_AUTOCONF
,
96 .irqs
= { 66, 66, 66, 66 },
99 static struct platform_device scif5_device
= {
103 .platform_data
= &scif5_platform_data
,
107 static struct plat_sci_port scif6_platform_data
= {
108 .mapbase
= 0xff929000,
109 .flags
= UPF_BOOT_AUTOCONF
,
111 .irqs
= { 67, 67, 67, 67 },
114 static struct platform_device scif6_device
= {
118 .platform_data
= &scif6_platform_data
,
122 static struct plat_sci_port scif7_platform_data
= {
123 .mapbase
= 0xff92a000,
124 .flags
= UPF_BOOT_AUTOCONF
,
126 .irqs
= { 68, 68, 68, 68 },
129 static struct platform_device scif7_device
= {
133 .platform_data
= &scif7_platform_data
,
137 static struct plat_sci_port scif8_platform_data
= {
138 .mapbase
= 0xff92b000,
139 .flags
= UPF_BOOT_AUTOCONF
,
141 .irqs
= { 69, 69, 69, 69 },
144 static struct platform_device scif8_device
= {
148 .platform_data
= &scif8_platform_data
,
152 static struct plat_sci_port scif9_platform_data
= {
153 .mapbase
= 0xff92c000,
154 .flags
= UPF_BOOT_AUTOCONF
,
156 .irqs
= { 70, 70, 70, 70 },
159 static struct platform_device scif9_device
= {
163 .platform_data
= &scif9_platform_data
,
167 static struct sh_timer_config tmu0_platform_data
= {
169 .channel_offset
= 0x04,
171 .clk
= "peripheral_clk",
172 .clockevent_rating
= 200,
175 static struct resource tmu0_resources
[] = {
180 .flags
= IORESOURCE_MEM
,
184 .flags
= IORESOURCE_IRQ
,
188 static struct platform_device tmu0_device
= {
192 .platform_data
= &tmu0_platform_data
,
194 .resource
= tmu0_resources
,
195 .num_resources
= ARRAY_SIZE(tmu0_resources
),
198 static struct sh_timer_config tmu1_platform_data
= {
200 .channel_offset
= 0x10,
202 .clk
= "peripheral_clk",
203 .clocksource_rating
= 200,
206 static struct resource tmu1_resources
[] = {
211 .flags
= IORESOURCE_MEM
,
215 .flags
= IORESOURCE_IRQ
,
219 static struct platform_device tmu1_device
= {
223 .platform_data
= &tmu1_platform_data
,
225 .resource
= tmu1_resources
,
226 .num_resources
= ARRAY_SIZE(tmu1_resources
),
229 static struct sh_timer_config tmu2_platform_data
= {
231 .channel_offset
= 0x1c,
233 .clk
= "peripheral_clk",
236 static struct resource tmu2_resources
[] = {
241 .flags
= IORESOURCE_MEM
,
245 .flags
= IORESOURCE_IRQ
,
249 static struct platform_device tmu2_device
= {
253 .platform_data
= &tmu2_platform_data
,
255 .resource
= tmu2_resources
,
256 .num_resources
= ARRAY_SIZE(tmu2_resources
),
259 static struct sh_timer_config tmu3_platform_data
= {
261 .channel_offset
= 0x04,
263 .clk
= "peripheral_clk",
266 static struct resource tmu3_resources
[] = {
271 .flags
= IORESOURCE_MEM
,
275 .flags
= IORESOURCE_IRQ
,
279 static struct platform_device tmu3_device
= {
283 .platform_data
= &tmu3_platform_data
,
285 .resource
= tmu3_resources
,
286 .num_resources
= ARRAY_SIZE(tmu3_resources
),
289 static struct sh_timer_config tmu4_platform_data
= {
291 .channel_offset
= 0x10,
293 .clk
= "peripheral_clk",
296 static struct resource tmu4_resources
[] = {
301 .flags
= IORESOURCE_MEM
,
305 .flags
= IORESOURCE_IRQ
,
309 static struct platform_device tmu4_device
= {
313 .platform_data
= &tmu4_platform_data
,
315 .resource
= tmu4_resources
,
316 .num_resources
= ARRAY_SIZE(tmu4_resources
),
319 static struct sh_timer_config tmu5_platform_data
= {
321 .channel_offset
= 0x1c,
323 .clk
= "peripheral_clk",
326 static struct resource tmu5_resources
[] = {
331 .flags
= IORESOURCE_MEM
,
335 .flags
= IORESOURCE_IRQ
,
339 static struct platform_device tmu5_device
= {
343 .platform_data
= &tmu5_platform_data
,
345 .resource
= tmu5_resources
,
346 .num_resources
= ARRAY_SIZE(tmu5_resources
),
349 static struct sh_timer_config tmu6_platform_data
= {
351 .channel_offset
= 0x04,
353 .clk
= "peripheral_clk",
356 static struct resource tmu6_resources
[] = {
361 .flags
= IORESOURCE_MEM
,
365 .flags
= IORESOURCE_IRQ
,
369 static struct platform_device tmu6_device
= {
373 .platform_data
= &tmu6_platform_data
,
375 .resource
= tmu6_resources
,
376 .num_resources
= ARRAY_SIZE(tmu6_resources
),
379 static struct sh_timer_config tmu7_platform_data
= {
381 .channel_offset
= 0x10,
383 .clk
= "peripheral_clk",
386 static struct resource tmu7_resources
[] = {
391 .flags
= IORESOURCE_MEM
,
395 .flags
= IORESOURCE_IRQ
,
399 static struct platform_device tmu7_device
= {
403 .platform_data
= &tmu7_platform_data
,
405 .resource
= tmu7_resources
,
406 .num_resources
= ARRAY_SIZE(tmu7_resources
),
409 static struct sh_timer_config tmu8_platform_data
= {
411 .channel_offset
= 0x1c,
413 .clk
= "peripheral_clk",
416 static struct resource tmu8_resources
[] = {
421 .flags
= IORESOURCE_MEM
,
425 .flags
= IORESOURCE_IRQ
,
429 static struct platform_device tmu8_device
= {
433 .platform_data
= &tmu8_platform_data
,
435 .resource
= tmu8_resources
,
436 .num_resources
= ARRAY_SIZE(tmu8_resources
),
439 static struct platform_device
*sh7770_devices
[] __initdata
= {
461 static int __init
sh7770_devices_setup(void)
463 return platform_add_devices(sh7770_devices
,
464 ARRAY_SIZE(sh7770_devices
));
466 arch_initcall(sh7770_devices_setup
);
468 static struct platform_device
*sh7770_early_devices
[] __initdata
= {
490 void __init
plat_early_device_setup(void)
492 early_platform_add_devices(sh7770_early_devices
,
493 ARRAY_SIZE(sh7770_early_devices
));
499 /* interrupt sources */
500 IRL_LLLL
, IRL_LLLH
, IRL_LLHL
, IRL_LLHH
,
501 IRL_LHLL
, IRL_LHLH
, IRL_LHHL
, IRL_LHHH
,
502 IRL_HLLL
, IRL_HLLH
, IRL_HLHL
, IRL_HLHH
,
503 IRL_HHLL
, IRL_HHLH
, IRL_HHHL
,
505 IRQ0
, IRQ1
, IRQ2
, IRQ3
, IRQ4
, IRQ5
,
508 TMU0
, TMU1
, TMU2
, TMU2_TICPI
,
509 TMU3
, TMU4
, TMU5
, TMU5_TICPI
,
511 HAC
, IPI
, SPDIF
, HUDI
, I2C
,
512 DMAC0_DMINT0
, DMAC0_DMINT1
, DMAC0_DMINT2
,
513 I2S0
, I2S1
, I2S2
, I2S3
,
514 SRC_RX
, SRC_TX
, SRC_SPDIF
,
515 DU
, VIDEO_IN
, REMOTE
, YUV
, USB
, ATAPI
, CAN
, GPS
, GFX2D
,
516 GFX3D_MBX
, GFX3D_DMAC
,
519 SCIF089
, SCIF1234
, SCIF567
,
521 BBDMAC_0_3
, BBDMAC_4_7
, BBDMAC_8_10
, BBDMAC_11_14
,
522 BBDMAC_15_18
, BBDMAC_19_22
, BBDMAC_23_26
, BBDMAC_27
,
523 BBDMAC_28
, BBDMAC_29
, BBDMAC_30
, BBDMAC_31
,
525 /* interrupt groups */
526 TMU
, DMAC
, I2S
, SRC
, GFX3D
, SPI
, SCIF
, BBDMAC
,
529 static struct intc_vect vectors
[] __initdata
= {
530 INTC_VECT(GPIO
, 0x3e0),
531 INTC_VECT(TMU0
, 0x400), INTC_VECT(TMU1
, 0x420),
532 INTC_VECT(TMU2
, 0x440), INTC_VECT(TMU2_TICPI
, 0x460),
533 INTC_VECT(TMU3
, 0x480), INTC_VECT(TMU4
, 0x4a0),
534 INTC_VECT(TMU5
, 0x4c0), INTC_VECT(TMU5_TICPI
, 0x4e0),
535 INTC_VECT(TMU6
, 0x500), INTC_VECT(TMU7
, 0x520),
536 INTC_VECT(TMU8
, 0x540),
537 INTC_VECT(HAC
, 0x580), INTC_VECT(IPI
, 0x5c0),
538 INTC_VECT(SPDIF
, 0x5e0),
539 INTC_VECT(HUDI
, 0x600), INTC_VECT(I2C
, 0x620),
540 INTC_VECT(DMAC0_DMINT0
, 0x640), INTC_VECT(DMAC0_DMINT1
, 0x660),
541 INTC_VECT(DMAC0_DMINT2
, 0x680),
542 INTC_VECT(I2S0
, 0x6a0), INTC_VECT(I2S1
, 0x6c0),
543 INTC_VECT(I2S2
, 0x6e0), INTC_VECT(I2S3
, 0x700),
544 INTC_VECT(SRC_RX
, 0x720), INTC_VECT(SRC_TX
, 0x740),
545 INTC_VECT(SRC_SPDIF
, 0x760),
546 INTC_VECT(DU
, 0x780), INTC_VECT(VIDEO_IN
, 0x7a0),
547 INTC_VECT(REMOTE
, 0x7c0), INTC_VECT(YUV
, 0x7e0),
548 INTC_VECT(USB
, 0x840), INTC_VECT(ATAPI
, 0x860),
549 INTC_VECT(CAN
, 0x880), INTC_VECT(GPS
, 0x8a0),
550 INTC_VECT(GFX2D
, 0x8c0),
551 INTC_VECT(GFX3D_MBX
, 0x900), INTC_VECT(GFX3D_DMAC
, 0x920),
552 INTC_VECT(EXBUS_ATA
, 0x940),
553 INTC_VECT(SPI0
, 0x960), INTC_VECT(SPI1
, 0x980),
554 INTC_VECT(SCIF089
, 0x9a0), INTC_VECT(SCIF1234
, 0x9c0),
555 INTC_VECT(SCIF1234
, 0x9e0), INTC_VECT(SCIF1234
, 0xa00),
556 INTC_VECT(SCIF1234
, 0xa20), INTC_VECT(SCIF567
, 0xa40),
557 INTC_VECT(SCIF567
, 0xa60), INTC_VECT(SCIF567
, 0xa80),
558 INTC_VECT(SCIF089
, 0xaa0), INTC_VECT(SCIF089
, 0xac0),
559 INTC_VECT(ADC
, 0xb20),
560 INTC_VECT(BBDMAC_0_3
, 0xba0), INTC_VECT(BBDMAC_0_3
, 0xbc0),
561 INTC_VECT(BBDMAC_0_3
, 0xbe0), INTC_VECT(BBDMAC_0_3
, 0xc00),
562 INTC_VECT(BBDMAC_4_7
, 0xc20), INTC_VECT(BBDMAC_4_7
, 0xc40),
563 INTC_VECT(BBDMAC_4_7
, 0xc60), INTC_VECT(BBDMAC_4_7
, 0xc80),
564 INTC_VECT(BBDMAC_8_10
, 0xca0), INTC_VECT(BBDMAC_8_10
, 0xcc0),
565 INTC_VECT(BBDMAC_8_10
, 0xce0), INTC_VECT(BBDMAC_11_14
, 0xd00),
566 INTC_VECT(BBDMAC_11_14
, 0xd20), INTC_VECT(BBDMAC_11_14
, 0xd40),
567 INTC_VECT(BBDMAC_11_14
, 0xd60), INTC_VECT(BBDMAC_15_18
, 0xd80),
568 INTC_VECT(BBDMAC_15_18
, 0xda0), INTC_VECT(BBDMAC_15_18
, 0xdc0),
569 INTC_VECT(BBDMAC_15_18
, 0xde0), INTC_VECT(BBDMAC_19_22
, 0xe00),
570 INTC_VECT(BBDMAC_19_22
, 0xe20), INTC_VECT(BBDMAC_19_22
, 0xe40),
571 INTC_VECT(BBDMAC_19_22
, 0xe60), INTC_VECT(BBDMAC_23_26
, 0xe80),
572 INTC_VECT(BBDMAC_23_26
, 0xea0), INTC_VECT(BBDMAC_23_26
, 0xec0),
573 INTC_VECT(BBDMAC_23_26
, 0xee0), INTC_VECT(BBDMAC_27
, 0xf00),
574 INTC_VECT(BBDMAC_28
, 0xf20), INTC_VECT(BBDMAC_29
, 0xf40),
575 INTC_VECT(BBDMAC_30
, 0xf60), INTC_VECT(BBDMAC_31
, 0xf80),
578 static struct intc_group groups
[] __initdata
= {
579 INTC_GROUP(TMU
, TMU0
, TMU1
, TMU2
, TMU2_TICPI
, TMU3
, TMU4
, TMU5
,
580 TMU5_TICPI
, TMU6
, TMU7
, TMU8
),
581 INTC_GROUP(DMAC
, DMAC0_DMINT0
, DMAC0_DMINT1
, DMAC0_DMINT2
),
582 INTC_GROUP(I2S
, I2S0
, I2S1
, I2S2
, I2S3
),
583 INTC_GROUP(SRC
, SRC_RX
, SRC_TX
, SRC_SPDIF
),
584 INTC_GROUP(GFX3D
, GFX3D_MBX
, GFX3D_DMAC
),
585 INTC_GROUP(SPI
, SPI0
, SPI1
),
586 INTC_GROUP(SCIF
, SCIF089
, SCIF1234
, SCIF567
),
588 BBDMAC_0_3
, BBDMAC_4_7
, BBDMAC_8_10
, BBDMAC_11_14
,
589 BBDMAC_15_18
, BBDMAC_19_22
, BBDMAC_23_26
, BBDMAC_27
,
590 BBDMAC_28
, BBDMAC_29
, BBDMAC_30
, BBDMAC_31
),
593 static struct intc_mask_reg mask_registers
[] __initdata
= {
594 { 0xffe00040, 0xffe00044, 32, /* INT2MSKR / INT2MSKCR */
595 { 0, BBDMAC
, ADC
, SCIF
, SPI
, EXBUS_ATA
, GFX3D
, GFX2D
,
596 GPS
, CAN
, ATAPI
, USB
, YUV
, REMOTE
, VIDEO_IN
, DU
, SRC
, I2S
,
597 DMAC
, I2C
, HUDI
, SPDIF
, IPI
, HAC
, TMU
, GPIO
} },
600 static struct intc_prio_reg prio_registers
[] __initdata
= {
601 { 0xffe00000, 0, 32, 8, /* INT2PRI0 */ { GPIO
, TMU0
, 0, HAC
} },
602 { 0xffe00004, 0, 32, 8, /* INT2PRI1 */ { IPI
, SPDIF
, HUDI
, I2C
} },
603 { 0xffe00008, 0, 32, 8, /* INT2PRI2 */ { DMAC
, I2S
, SRC
, DU
} },
604 { 0xffe0000c, 0, 32, 8, /* INT2PRI3 */ { VIDEO_IN
, REMOTE
, YUV
, USB
} },
605 { 0xffe00010, 0, 32, 8, /* INT2PRI4 */ { ATAPI
, CAN
, GPS
, GFX2D
} },
606 { 0xffe00014, 0, 32, 8, /* INT2PRI5 */ { 0, GFX3D
, EXBUS_ATA
, SPI
} },
607 { 0xffe00018, 0, 32, 8, /* INT2PRI6 */ { SCIF1234
, SCIF567
, SCIF089
} },
608 { 0xffe0001c, 0, 32, 8, /* INT2PRI7 */ { ADC
, 0, 0, BBDMAC_0_3
} },
609 { 0xffe00020, 0, 32, 8, /* INT2PRI8 */
610 { BBDMAC_4_7
, BBDMAC_8_10
, BBDMAC_11_14
, BBDMAC_15_18
} },
611 { 0xffe00024, 0, 32, 8, /* INT2PRI9 */
612 { BBDMAC_19_22
, BBDMAC_23_26
, BBDMAC_27
, BBDMAC_28
} },
613 { 0xffe00028, 0, 32, 8, /* INT2PRI10 */
614 { BBDMAC_29
, BBDMAC_30
, BBDMAC_31
} },
615 { 0xffe0002c, 0, 32, 8, /* INT2PRI11 */
616 { TMU1
, TMU2
, TMU2_TICPI
, TMU3
} },
617 { 0xffe00030, 0, 32, 8, /* INT2PRI12 */
618 { TMU4
, TMU5
, TMU5_TICPI
, TMU6
} },
619 { 0xffe00034, 0, 32, 8, /* INT2PRI13 */
623 static DECLARE_INTC_DESC(intc_desc
, "sh7770", vectors
, groups
,
624 mask_registers
, prio_registers
, NULL
);
626 /* Support for external interrupt pins in IRQ mode */
627 static struct intc_vect irq_vectors
[] __initdata
= {
628 INTC_VECT(IRQ0
, 0x240), INTC_VECT(IRQ1
, 0x280),
629 INTC_VECT(IRQ2
, 0x2c0), INTC_VECT(IRQ3
, 0x300),
630 INTC_VECT(IRQ4
, 0x340), INTC_VECT(IRQ5
, 0x380),
633 static struct intc_mask_reg irq_mask_registers
[] __initdata
= {
634 { 0xffd00044, 0xffd00064, 32, /* INTMSK0 / INTMSKCLR0 */
635 { IRQ0
, IRQ1
, IRQ2
, IRQ3
, IRQ4
, IRQ5
, } },
638 static struct intc_prio_reg irq_prio_registers
[] __initdata
= {
639 { 0xffd00010, 0, 32, 4, /* INTPRI */ { IRQ0
, IRQ1
, IRQ2
, IRQ3
,
643 static struct intc_sense_reg irq_sense_registers
[] __initdata
= {
644 { 0xffd0001c, 32, 2, /* ICR1 */ { IRQ0
, IRQ1
, IRQ2
, IRQ3
,
648 static DECLARE_INTC_DESC(intc_irq_desc
, "sh7770-irq", irq_vectors
,
649 NULL
, irq_mask_registers
, irq_prio_registers
,
650 irq_sense_registers
);
652 /* External interrupt pins in IRL mode */
653 static struct intc_vect irl_vectors
[] __initdata
= {
654 INTC_VECT(IRL_LLLL
, 0x200), INTC_VECT(IRL_LLLH
, 0x220),
655 INTC_VECT(IRL_LLHL
, 0x240), INTC_VECT(IRL_LLHH
, 0x260),
656 INTC_VECT(IRL_LHLL
, 0x280), INTC_VECT(IRL_LHLH
, 0x2a0),
657 INTC_VECT(IRL_LHHL
, 0x2c0), INTC_VECT(IRL_LHHH
, 0x2e0),
658 INTC_VECT(IRL_HLLL
, 0x300), INTC_VECT(IRL_HLLH
, 0x320),
659 INTC_VECT(IRL_HLHL
, 0x340), INTC_VECT(IRL_HLHH
, 0x360),
660 INTC_VECT(IRL_HHLL
, 0x380), INTC_VECT(IRL_HHLH
, 0x3a0),
661 INTC_VECT(IRL_HHHL
, 0x3c0),
664 static struct intc_mask_reg irl3210_mask_registers
[] __initdata
= {
665 { 0xffd40080, 0xffd40084, 32, /* INTMSK2 / INTMSKCLR2 */
666 { IRL_LLLL
, IRL_LLLH
, IRL_LLHL
, IRL_LLHH
,
667 IRL_LHLL
, IRL_LHLH
, IRL_LHHL
, IRL_LHHH
,
668 IRL_HLLL
, IRL_HLLH
, IRL_HLHL
, IRL_HLHH
,
669 IRL_HHLL
, IRL_HHLH
, IRL_HHHL
, } },
672 static struct intc_mask_reg irl7654_mask_registers
[] __initdata
= {
673 { 0xffd40080, 0xffd40084, 32, /* INTMSK2 / INTMSKCLR2 */
674 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
675 IRL_LLLL
, IRL_LLLH
, IRL_LLHL
, IRL_LLHH
,
676 IRL_LHLL
, IRL_LHLH
, IRL_LHHL
, IRL_LHHH
,
677 IRL_HLLL
, IRL_HLLH
, IRL_HLHL
, IRL_HLHH
,
678 IRL_HHLL
, IRL_HHLH
, IRL_HHHL
, } },
681 static DECLARE_INTC_DESC(intc_irl7654_desc
, "sh7780-irl7654", irl_vectors
,
682 NULL
, irl7654_mask_registers
, NULL
, NULL
);
684 static DECLARE_INTC_DESC(intc_irl3210_desc
, "sh7780-irl3210", irl_vectors
,
685 NULL
, irl3210_mask_registers
, NULL
, NULL
);
687 #define INTC_ICR0 0xffd00000
688 #define INTC_INTMSK0 0xffd00044
689 #define INTC_INTMSK1 0xffd00048
690 #define INTC_INTMSK2 0xffd40080
691 #define INTC_INTMSKCLR1 0xffd00068
692 #define INTC_INTMSKCLR2 0xffd40084
694 void __init
plat_irq_setup(void)
697 ctrl_outl(0xff000000, INTC_INTMSK0
);
699 /* disable IRL3-0 + IRL7-4 */
700 ctrl_outl(0xc0000000, INTC_INTMSK1
);
701 ctrl_outl(0xfffefffe, INTC_INTMSK2
);
703 /* select IRL mode for IRL3-0 + IRL7-4 */
704 ctrl_outl(ctrl_inl(INTC_ICR0
) & ~0x00c00000, INTC_ICR0
);
706 /* disable holding function, ie enable "SH-4 Mode" */
707 ctrl_outl(ctrl_inl(INTC_ICR0
) | 0x00200000, INTC_ICR0
);
709 register_intc_controller(&intc_desc
);
712 void __init
plat_irq_setup_pins(int mode
)
716 /* select IRQ mode for IRL3-0 + IRL7-4 */
717 ctrl_outl(ctrl_inl(INTC_ICR0
) | 0x00c00000, INTC_ICR0
);
718 register_intc_controller(&intc_irq_desc
);
720 case IRQ_MODE_IRL7654
:
721 /* enable IRL7-4 but don't provide any masking */
722 ctrl_outl(0x40000000, INTC_INTMSKCLR1
);
723 ctrl_outl(0x0000fffe, INTC_INTMSKCLR2
);
725 case IRQ_MODE_IRL3210
:
726 /* enable IRL0-3 but don't provide any masking */
727 ctrl_outl(0x80000000, INTC_INTMSKCLR1
);
728 ctrl_outl(0xfffe0000, INTC_INTMSKCLR2
);
730 case IRQ_MODE_IRL7654_MASK
:
731 /* enable IRL7-4 and mask using cpu intc controller */
732 ctrl_outl(0x40000000, INTC_INTMSKCLR1
);
733 register_intc_controller(&intc_irl7654_desc
);
735 case IRQ_MODE_IRL3210_MASK
:
736 /* enable IRL0-3 and mask using cpu intc controller */
737 ctrl_outl(0x80000000, INTC_INTMSKCLR1
);
738 register_intc_controller(&intc_irl3210_desc
);