4 * Copyright (C) 2009 Renesas Solutions Corp.
6 * Kuninori Morimoto <morimoto.kuninori@renesas.com>
8 * Based on SH7723 Setup
9 * Copyright (C) 2008 Paul Mundt
11 * This file is subject to the terms and conditions of the GNU General Public
12 * License. See the file "COPYING" in the main directory of this archive
15 #include <linux/platform_device.h>
16 #include <linux/init.h>
17 #include <linux/serial.h>
19 #include <linux/serial_sci.h>
20 #include <linux/uio_driver.h>
21 #include <linux/sh_timer.h>
23 #include <asm/clock.h>
24 #include <asm/mmzone.h>
27 static struct plat_sci_port sci_platform_data
[] = {
29 .mapbase
= 0xffe00000,
30 .flags
= UPF_BOOT_AUTOCONF
,
32 .irqs
= { 80, 80, 80, 80 },
35 .mapbase
= 0xffe10000,
36 .flags
= UPF_BOOT_AUTOCONF
,
38 .irqs
= { 81, 81, 81, 81 },
41 .mapbase
= 0xffe20000,
42 .flags
= UPF_BOOT_AUTOCONF
,
44 .irqs
= { 82, 82, 82, 82 },
47 .mapbase
= 0xa4e30000,
48 .flags
= UPF_BOOT_AUTOCONF
,
50 .irqs
= { 56, 56, 56, 56 },
53 .mapbase
= 0xa4e40000,
54 .flags
= UPF_BOOT_AUTOCONF
,
56 .irqs
= { 88, 88, 88, 88 },
59 .mapbase
= 0xa4e50000,
60 .flags
= UPF_BOOT_AUTOCONF
,
62 .irqs
= { 109, 109, 109, 109 },
69 static struct platform_device sci_device
= {
73 .platform_data
= sci_platform_data
,
78 static struct resource rtc_resources
[] = {
81 .end
= 0xa465fec0 + 0x58 - 1,
82 .flags
= IORESOURCE_IO
,
87 .flags
= IORESOURCE_IRQ
,
92 .flags
= IORESOURCE_IRQ
,
97 .flags
= IORESOURCE_IRQ
,
101 static struct platform_device rtc_device
= {
104 .num_resources
= ARRAY_SIZE(rtc_resources
),
105 .resource
= rtc_resources
,
109 static struct resource iic0_resources
[] = {
113 .end
= 0x04470018 - 1,
114 .flags
= IORESOURCE_MEM
,
119 .flags
= IORESOURCE_IRQ
,
123 static struct platform_device iic0_device
= {
124 .name
= "i2c-sh_mobile",
125 .id
= 0, /* "i2c0" clock */
126 .num_resources
= ARRAY_SIZE(iic0_resources
),
127 .resource
= iic0_resources
,
131 static struct resource iic1_resources
[] = {
135 .end
= 0x04750018 - 1,
136 .flags
= IORESOURCE_MEM
,
141 .flags
= IORESOURCE_IRQ
,
145 static struct platform_device iic1_device
= {
146 .name
= "i2c-sh_mobile",
147 .id
= 1, /* "i2c1" clock */
148 .num_resources
= ARRAY_SIZE(iic1_resources
),
149 .resource
= iic1_resources
,
153 static struct uio_info vpu_platform_data
= {
159 static struct resource vpu_resources
[] = {
164 .flags
= IORESOURCE_MEM
,
167 /* place holder for contiguous memory */
171 static struct platform_device vpu_device
= {
172 .name
= "uio_pdrv_genirq",
175 .platform_data
= &vpu_platform_data
,
177 .resource
= vpu_resources
,
178 .num_resources
= ARRAY_SIZE(vpu_resources
),
182 static struct uio_info veu0_platform_data
= {
188 static struct resource veu0_resources
[] = {
192 .end
= 0xfe9200cb - 1,
193 .flags
= IORESOURCE_MEM
,
196 /* place holder for contiguous memory */
200 static struct platform_device veu0_device
= {
201 .name
= "uio_pdrv_genirq",
204 .platform_data
= &veu0_platform_data
,
206 .resource
= veu0_resources
,
207 .num_resources
= ARRAY_SIZE(veu0_resources
),
211 static struct uio_info veu1_platform_data
= {
217 static struct resource veu1_resources
[] = {
221 .end
= 0xfe9240cb - 1,
222 .flags
= IORESOURCE_MEM
,
225 /* place holder for contiguous memory */
229 static struct platform_device veu1_device
= {
230 .name
= "uio_pdrv_genirq",
233 .platform_data
= &veu1_platform_data
,
235 .resource
= veu1_resources
,
236 .num_resources
= ARRAY_SIZE(veu1_resources
),
239 static struct sh_timer_config cmt_platform_data
= {
241 .channel_offset
= 0x60,
244 .clockevent_rating
= 125,
245 .clocksource_rating
= 200,
248 static struct resource cmt_resources
[] = {
253 .flags
= IORESOURCE_MEM
,
257 .flags
= IORESOURCE_IRQ
,
261 static struct platform_device cmt_device
= {
265 .platform_data
= &cmt_platform_data
,
267 .resource
= cmt_resources
,
268 .num_resources
= ARRAY_SIZE(cmt_resources
),
271 static struct sh_timer_config tmu0_platform_data
= {
273 .channel_offset
= 0x04,
276 .clockevent_rating
= 200,
279 static struct resource tmu0_resources
[] = {
284 .flags
= IORESOURCE_MEM
,
288 .flags
= IORESOURCE_IRQ
,
292 static struct platform_device tmu0_device
= {
296 .platform_data
= &tmu0_platform_data
,
298 .resource
= tmu0_resources
,
299 .num_resources
= ARRAY_SIZE(tmu0_resources
),
302 static struct sh_timer_config tmu1_platform_data
= {
304 .channel_offset
= 0x10,
307 .clocksource_rating
= 200,
310 static struct resource tmu1_resources
[] = {
315 .flags
= IORESOURCE_MEM
,
319 .flags
= IORESOURCE_IRQ
,
323 static struct platform_device tmu1_device
= {
327 .platform_data
= &tmu1_platform_data
,
329 .resource
= tmu1_resources
,
330 .num_resources
= ARRAY_SIZE(tmu1_resources
),
333 static struct sh_timer_config tmu2_platform_data
= {
335 .channel_offset
= 0x1c,
340 static struct resource tmu2_resources
[] = {
345 .flags
= IORESOURCE_MEM
,
349 .flags
= IORESOURCE_IRQ
,
353 static struct platform_device tmu2_device
= {
357 .platform_data
= &tmu2_platform_data
,
359 .resource
= tmu2_resources
,
360 .num_resources
= ARRAY_SIZE(tmu2_resources
),
364 static struct sh_timer_config tmu3_platform_data
= {
366 .channel_offset
= 0x04,
371 static struct resource tmu3_resources
[] = {
376 .flags
= IORESOURCE_MEM
,
380 .flags
= IORESOURCE_IRQ
,
384 static struct platform_device tmu3_device
= {
388 .platform_data
= &tmu3_platform_data
,
390 .resource
= tmu3_resources
,
391 .num_resources
= ARRAY_SIZE(tmu3_resources
),
394 static struct sh_timer_config tmu4_platform_data
= {
396 .channel_offset
= 0x10,
401 static struct resource tmu4_resources
[] = {
406 .flags
= IORESOURCE_MEM
,
410 .flags
= IORESOURCE_IRQ
,
414 static struct platform_device tmu4_device
= {
418 .platform_data
= &tmu4_platform_data
,
420 .resource
= tmu4_resources
,
421 .num_resources
= ARRAY_SIZE(tmu4_resources
),
424 static struct sh_timer_config tmu5_platform_data
= {
426 .channel_offset
= 0x1c,
431 static struct resource tmu5_resources
[] = {
436 .flags
= IORESOURCE_MEM
,
440 .flags
= IORESOURCE_IRQ
,
444 static struct platform_device tmu5_device
= {
448 .platform_data
= &tmu5_platform_data
,
450 .resource
= tmu5_resources
,
451 .num_resources
= ARRAY_SIZE(tmu5_resources
),
455 static struct uio_info jpu_platform_data
= {
461 static struct resource jpu_resources
[] = {
466 .flags
= IORESOURCE_MEM
,
469 /* place holder for contiguous memory */
473 static struct platform_device jpu_device
= {
474 .name
= "uio_pdrv_genirq",
477 .platform_data
= &jpu_platform_data
,
479 .resource
= jpu_resources
,
480 .num_resources
= ARRAY_SIZE(jpu_resources
),
483 static struct platform_device
*sh7724_devices
[] __initdata
= {
501 static int __init
sh7724_devices_setup(void)
503 platform_resource_setup_memory(&vpu_device
, "vpu", 2 << 20);
504 platform_resource_setup_memory(&veu0_device
, "veu0", 2 << 20);
505 platform_resource_setup_memory(&veu1_device
, "veu1", 2 << 20);
506 platform_resource_setup_memory(&jpu_device
, "jpu", 2 << 20);
508 return platform_add_devices(sh7724_devices
,
509 ARRAY_SIZE(sh7724_devices
));
511 arch_initcall(sh7724_devices_setup
);
513 static struct platform_device
*sh7724_early_devices
[] __initdata
= {
523 void __init
plat_early_device_setup(void)
525 early_platform_add_devices(sh7724_early_devices
,
526 ARRAY_SIZE(sh7724_early_devices
));
529 #define RAMCR_CACHE_L2FC 0x0002
530 #define RAMCR_CACHE_L2E 0x0001
531 #define L2_CACHE_ENABLE (RAMCR_CACHE_L2E|RAMCR_CACHE_L2FC)
532 void __uses_jump_to_uncached
l2_cache_init(void)
534 /* Enable L2 cache */
535 ctrl_outl(L2_CACHE_ENABLE
, RAMCR
);
541 /* interrupt sources */
542 IRQ0
, IRQ1
, IRQ2
, IRQ3
, IRQ4
, IRQ5
, IRQ6
, IRQ7
,
544 DMAC1A_DEI0
, DMAC1A_DEI1
, DMAC1A_DEI2
, DMAC1A_DEI3
,
545 _2DG_TRI
, _2DG_INI
, _2DG_CEI
,
546 DMAC0A_DEI0
, DMAC0A_DEI1
, DMAC0A_DEI2
, DMAC0A_DEI3
,
547 VIO_CEU0
, VIO_BEU0
, VIO_VEU1
, VIO_VOU
,
555 RTC_ATI
, RTC_PRI
, RTC_CUI
,
556 DMAC1B_DEI4
, DMAC1B_DEI5
, DMAC1B_DADERR
,
557 DMAC0B_DEI4
, DMAC0B_DEI5
, DMAC0B_DADERR
,
559 SCIF_SCIF0
, SCIF_SCIF1
, SCIF_SCIF2
,
561 MSIOF_MSIOFI0
, MSIOF_MSIOFI1
,
562 SPU_SPUI0
, SPU_SPUI1
,
566 I2C1_ALI
, I2C1_TACKI
, I2C1_WAITI
, I2C1_DTEI
,
567 I2C0_ALI
, I2C0_TACKI
, I2C0_WAITI
, I2C0_DTEI
,
568 SDHI0_SDHII0
, SDHI0_SDHII1
, SDHI0_SDHII2
, SDHI0_SDHII3
,
573 TMU0_TUNI0
, TMU0_TUNI1
, TMU0_TUNI2
,
575 SDHI1_SDHII0
, SDHI1_SDHII1
, SDHI1_SDHII2
,
578 MMC_MMC2I
, MMC_MMC3I
,
580 TMU1_TUNI0
, TMU1_TUNI1
, TMU1_TUNI2
,
582 /* interrupt groups */
583 DMAC1A
, _2DG
, DMAC0A
, VIO
, USB
, RTC
,
584 DMAC1B
, DMAC0B
, I2C0
, I2C1
, SDHI0
, SDHI1
, SPU
, MMCIF
,
587 static struct intc_vect vectors
[] __initdata
= {
588 INTC_VECT(IRQ0
, 0x600), INTC_VECT(IRQ1
, 0x620),
589 INTC_VECT(IRQ2
, 0x640), INTC_VECT(IRQ3
, 0x660),
590 INTC_VECT(IRQ4
, 0x680), INTC_VECT(IRQ5
, 0x6a0),
591 INTC_VECT(IRQ6
, 0x6c0), INTC_VECT(IRQ7
, 0x6e0),
593 INTC_VECT(DMAC1A_DEI0
, 0x700),
594 INTC_VECT(DMAC1A_DEI1
, 0x720),
595 INTC_VECT(DMAC1A_DEI2
, 0x740),
596 INTC_VECT(DMAC1A_DEI3
, 0x760),
598 INTC_VECT(_2DG_TRI
, 0x780),
599 INTC_VECT(_2DG_INI
, 0x7A0),
600 INTC_VECT(_2DG_CEI
, 0x7C0),
602 INTC_VECT(DMAC0A_DEI0
, 0x800),
603 INTC_VECT(DMAC0A_DEI1
, 0x820),
604 INTC_VECT(DMAC0A_DEI2
, 0x840),
605 INTC_VECT(DMAC0A_DEI3
, 0x860),
607 INTC_VECT(VIO_CEU0
, 0x880),
608 INTC_VECT(VIO_BEU0
, 0x8A0),
609 INTC_VECT(VIO_VEU1
, 0x8C0),
610 INTC_VECT(VIO_VOU
, 0x8E0),
612 INTC_VECT(SCIFA3
, 0x900),
613 INTC_VECT(VPU
, 0x980),
614 INTC_VECT(TPU
, 0x9A0),
615 INTC_VECT(CEU1
, 0x9E0),
616 INTC_VECT(BEU1
, 0xA00),
617 INTC_VECT(USB0
, 0xA20),
618 INTC_VECT(USB1
, 0xA40),
619 INTC_VECT(ATAPI
, 0xA60),
621 INTC_VECT(RTC_ATI
, 0xA80),
622 INTC_VECT(RTC_PRI
, 0xAA0),
623 INTC_VECT(RTC_CUI
, 0xAC0),
625 INTC_VECT(DMAC1B_DEI4
, 0xB00),
626 INTC_VECT(DMAC1B_DEI5
, 0xB20),
627 INTC_VECT(DMAC1B_DADERR
, 0xB40),
629 INTC_VECT(DMAC0B_DEI4
, 0xB80),
630 INTC_VECT(DMAC0B_DEI5
, 0xBA0),
631 INTC_VECT(DMAC0B_DADERR
, 0xBC0),
633 INTC_VECT(KEYSC
, 0xBE0),
634 INTC_VECT(SCIF_SCIF0
, 0xC00),
635 INTC_VECT(SCIF_SCIF1
, 0xC20),
636 INTC_VECT(SCIF_SCIF2
, 0xC40),
637 INTC_VECT(VEU0
, 0xC60),
638 INTC_VECT(MSIOF_MSIOFI0
, 0xC80),
639 INTC_VECT(MSIOF_MSIOFI1
, 0xCA0),
640 INTC_VECT(SPU_SPUI0
, 0xCC0),
641 INTC_VECT(SPU_SPUI1
, 0xCE0),
642 INTC_VECT(SCIFA4
, 0xD00),
644 INTC_VECT(ICB
, 0xD20),
645 INTC_VECT(ETHI
, 0xD60),
647 INTC_VECT(I2C1_ALI
, 0xD80),
648 INTC_VECT(I2C1_TACKI
, 0xDA0),
649 INTC_VECT(I2C1_WAITI
, 0xDC0),
650 INTC_VECT(I2C1_DTEI
, 0xDE0),
652 INTC_VECT(I2C0_ALI
, 0xE00),
653 INTC_VECT(I2C0_TACKI
, 0xE20),
654 INTC_VECT(I2C0_WAITI
, 0xE40),
655 INTC_VECT(I2C0_DTEI
, 0xE60),
657 INTC_VECT(SDHI0_SDHII0
, 0xE80),
658 INTC_VECT(SDHI0_SDHII1
, 0xEA0),
659 INTC_VECT(SDHI0_SDHII2
, 0xEC0),
660 INTC_VECT(SDHI0_SDHII3
, 0xEE0),
662 INTC_VECT(CMT
, 0xF00),
663 INTC_VECT(TSIF
, 0xF20),
664 INTC_VECT(FSI
, 0xF80),
665 INTC_VECT(SCIFA5
, 0xFA0),
667 INTC_VECT(TMU0_TUNI0
, 0x400),
668 INTC_VECT(TMU0_TUNI1
, 0x420),
669 INTC_VECT(TMU0_TUNI2
, 0x440),
671 INTC_VECT(IRDA
, 0x480),
673 INTC_VECT(SDHI1_SDHII0
, 0x4E0),
674 INTC_VECT(SDHI1_SDHII1
, 0x500),
675 INTC_VECT(SDHI1_SDHII2
, 0x520),
677 INTC_VECT(JPU
, 0x560),
678 INTC_VECT(_2DDMAC
, 0x4A0),
680 INTC_VECT(MMC_MMC2I
, 0x5A0),
681 INTC_VECT(MMC_MMC3I
, 0x5C0),
683 INTC_VECT(LCDC
, 0xF40),
685 INTC_VECT(TMU1_TUNI0
, 0x920),
686 INTC_VECT(TMU1_TUNI1
, 0x940),
687 INTC_VECT(TMU1_TUNI2
, 0x960),
690 static struct intc_group groups
[] __initdata
= {
691 INTC_GROUP(DMAC1A
, DMAC1A_DEI0
, DMAC1A_DEI1
, DMAC1A_DEI2
, DMAC1A_DEI3
),
692 INTC_GROUP(_2DG
, _2DG_TRI
, _2DG_INI
, _2DG_CEI
),
693 INTC_GROUP(DMAC0A
, DMAC0A_DEI0
, DMAC0A_DEI1
, DMAC0A_DEI2
, DMAC0A_DEI3
),
694 INTC_GROUP(VIO
, VIO_CEU0
, VIO_BEU0
, VIO_VEU1
, VIO_VOU
),
695 INTC_GROUP(USB
, USB0
, USB1
),
696 INTC_GROUP(RTC
, RTC_ATI
, RTC_PRI
, RTC_CUI
),
697 INTC_GROUP(DMAC1B
, DMAC1B_DEI4
, DMAC1B_DEI5
, DMAC1B_DADERR
),
698 INTC_GROUP(DMAC0B
, DMAC0B_DEI4
, DMAC0B_DEI5
, DMAC0B_DADERR
),
699 INTC_GROUP(I2C0
, I2C0_ALI
, I2C0_TACKI
, I2C0_WAITI
, I2C0_DTEI
),
700 INTC_GROUP(I2C1
, I2C1_ALI
, I2C1_TACKI
, I2C1_WAITI
, I2C1_DTEI
),
701 INTC_GROUP(SDHI0
, SDHI0_SDHII0
, SDHI0_SDHII1
, SDHI0_SDHII2
, SDHI0_SDHII3
),
702 INTC_GROUP(SDHI1
, SDHI1_SDHII0
, SDHI1_SDHII1
, SDHI1_SDHII2
),
703 INTC_GROUP(SPU
, SPU_SPUI0
, SPU_SPUI1
),
704 INTC_GROUP(MMCIF
, MMC_MMC2I
, MMC_MMC3I
),
707 static struct intc_mask_reg mask_registers
[] __initdata
= {
708 { 0xa4080080, 0xa40800c0, 8, /* IMR0 / IMCR0 */
709 { 0, TMU1_TUNI2
, TMU1_TUNI1
, TMU1_TUNI0
,
710 0, SDHI1_SDHII2
, SDHI1_SDHII1
, SDHI1_SDHII0
} },
711 { 0xa4080084, 0xa40800c4, 8, /* IMR1 / IMCR1 */
712 { VIO_VOU
, VIO_VEU1
, VIO_BEU0
, VIO_CEU0
,
713 DMAC0A_DEI3
, DMAC0A_DEI2
, DMAC0A_DEI1
, DMAC0A_DEI0
} },
714 { 0xa4080088, 0xa40800c8, 8, /* IMR2 / IMCR2 */
715 { 0, 0, 0, VPU
, ATAPI
, ETHI
, 0, SCIFA3
} },
716 { 0xa408008c, 0xa40800cc, 8, /* IMR3 / IMCR3 */
717 { DMAC1A_DEI3
, DMAC1A_DEI2
, DMAC1A_DEI1
, DMAC1A_DEI0
,
718 SPU_SPUI1
, SPU_SPUI0
, BEU1
, IRDA
} },
719 { 0xa4080090, 0xa40800d0, 8, /* IMR4 / IMCR4 */
720 { 0, TMU0_TUNI2
, TMU0_TUNI1
, TMU0_TUNI0
,
722 { 0xa4080094, 0xa40800d4, 8, /* IMR5 / IMCR5 */
723 { KEYSC
, DMAC0B_DADERR
, DMAC0B_DEI5
, DMAC0B_DEI4
,
724 VEU0
, SCIF_SCIF2
, SCIF_SCIF1
, SCIF_SCIF0
} },
725 { 0xa4080098, 0xa40800d8, 8, /* IMR6 / IMCR6 */
727 CEU1
, 0, MSIOF_MSIOFI1
, MSIOF_MSIOFI0
} },
728 { 0xa408009c, 0xa40800dc, 8, /* IMR7 / IMCR7 */
729 { I2C0_DTEI
, I2C0_WAITI
, I2C0_TACKI
, I2C0_ALI
,
730 I2C1_DTEI
, I2C1_WAITI
, I2C1_TACKI
, I2C1_ALI
} },
731 { 0xa40800a0, 0xa40800e0, 8, /* IMR8 / IMCR8 */
732 { SDHI0_SDHII3
, SDHI0_SDHII2
, SDHI0_SDHII1
, SDHI0_SDHII0
,
733 0, 0, SCIFA5
, FSI
} },
734 { 0xa40800a4, 0xa40800e4, 8, /* IMR9 / IMCR9 */
735 { 0, 0, 0, CMT
, 0, USB1
, USB0
, 0 } },
736 { 0xa40800a8, 0xa40800e8, 8, /* IMR10 / IMCR10 */
737 { 0, DMAC1B_DADERR
, DMAC1B_DEI5
, DMAC1B_DEI4
,
738 0, RTC_CUI
, RTC_PRI
, RTC_ATI
} },
739 { 0xa40800ac, 0xa40800ec, 8, /* IMR11 / IMCR11 */
740 { 0, _2DG_CEI
, _2DG_INI
, _2DG_TRI
,
742 { 0xa40800b0, 0xa40800f0, 8, /* IMR12 / IMCR12 */
743 { 0, 0, MMC_MMC3I
, MMC_MMC2I
, 0, 0, 0, _2DDMAC
} },
744 { 0xa4140044, 0xa4140064, 8, /* INTMSK00 / INTMSKCLR00 */
745 { IRQ0
, IRQ1
, IRQ2
, IRQ3
, IRQ4
, IRQ5
, IRQ6
, IRQ7
} },
748 static struct intc_prio_reg prio_registers
[] __initdata
= {
749 { 0xa4080000, 0, 16, 4, /* IPRA */ { TMU0_TUNI0
, TMU0_TUNI1
,
750 TMU0_TUNI2
, IRDA
} },
751 { 0xa4080004, 0, 16, 4, /* IPRB */ { JPU
, LCDC
, DMAC1A
, BEU1
} },
752 { 0xa4080008, 0, 16, 4, /* IPRC */ { TMU1_TUNI0
, TMU1_TUNI1
,
754 { 0xa408000c, 0, 16, 4, /* IPRD */ { 0, MMCIF
, 0, ATAPI
} },
755 { 0xa4080010, 0, 16, 4, /* IPRE */ { DMAC0A
, VIO
, SCIFA3
, VPU
} },
756 { 0xa4080014, 0, 16, 4, /* IPRF */ { KEYSC
, DMAC0B
, USB
, CMT
} },
757 { 0xa4080018, 0, 16, 4, /* IPRG */ { SCIF_SCIF0
, SCIF_SCIF1
,
758 SCIF_SCIF2
, VEU0
} },
759 { 0xa408001c, 0, 16, 4, /* IPRH */ { MSIOF_MSIOFI0
, MSIOF_MSIOFI1
,
761 { 0xa4080020, 0, 16, 4, /* IPRI */ { SCIFA4
, ICB
, TSIF
, _2DG
} },
762 { 0xa4080024, 0, 16, 4, /* IPRJ */ { CEU1
, ETHI
, FSI
, SDHI1
} },
763 { 0xa4080028, 0, 16, 4, /* IPRK */ { RTC
, DMAC1B
, 0, SDHI0
} },
764 { 0xa408002c, 0, 16, 4, /* IPRL */ { SCIFA5
, 0, TPU
, _2DDMAC
} },
765 { 0xa4140010, 0, 32, 4, /* INTPRI00 */
766 { IRQ0
, IRQ1
, IRQ2
, IRQ3
, IRQ4
, IRQ5
, IRQ6
, IRQ7
} },
769 static struct intc_sense_reg sense_registers
[] __initdata
= {
770 { 0xa414001c, 16, 2, /* ICR1 */
771 { IRQ0
, IRQ1
, IRQ2
, IRQ3
, IRQ4
, IRQ5
, IRQ6
, IRQ7
} },
774 static struct intc_mask_reg ack_registers
[] __initdata
= {
775 { 0xa4140024, 0, 8, /* INTREQ00 */
776 { IRQ0
, IRQ1
, IRQ2
, IRQ3
, IRQ4
, IRQ5
, IRQ6
, IRQ7
} },
779 static DECLARE_INTC_DESC_ACK(intc_desc
, "sh7724", vectors
, groups
,
780 mask_registers
, prio_registers
, sense_registers
,
783 void __init
plat_irq_setup(void)
785 register_intc_controller(&intc_desc
);