2 * sh7372 processor support
4 * Copyright (C) 2010 Magnus Damm
5 * Copyright (C) 2008 Yoshihiro Shimoda
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #include <linux/kernel.h>
21 #include <linux/init.h>
22 #include <linux/interrupt.h>
23 #include <linux/irq.h>
24 #include <linux/platform_device.h>
25 #include <linux/uio_driver.h>
26 #include <linux/delay.h>
27 #include <linux/input.h>
29 #include <linux/serial_sci.h>
30 #include <linux/sh_dma.h>
31 #include <linux/sh_intc.h>
32 #include <linux/sh_timer.h>
33 #include <linux/pm_domain.h>
34 #include <mach/hardware.h>
35 #include <mach/irqs.h>
36 #include <mach/sh7372.h>
37 #include <asm/mach-types.h>
38 #include <asm/mach/arch.h>
41 static struct plat_sci_port scif0_platform_data = {
42 .mapbase = 0xe6c40000,
43 .flags = UPF_BOOT_AUTOCONF,
44 .scscr = SCSCR_RE | SCSCR_TE,
45 .scbrr_algo_id = SCBRR_ALGO_4,
47 .irqs = { evt2irq(0x0c00), evt2irq(0x0c00),
48 evt2irq(0x0c00), evt2irq(0x0c00) },
51 static struct platform_device scif0_device = {
55 .platform_data = &scif0_platform_data,
60 static struct plat_sci_port scif1_platform_data = {
61 .mapbase = 0xe6c50000,
62 .flags = UPF_BOOT_AUTOCONF,
63 .scscr = SCSCR_RE | SCSCR_TE,
64 .scbrr_algo_id = SCBRR_ALGO_4,
66 .irqs = { evt2irq(0x0c20), evt2irq(0x0c20),
67 evt2irq(0x0c20), evt2irq(0x0c20) },
70 static struct platform_device scif1_device = {
74 .platform_data = &scif1_platform_data,
79 static struct plat_sci_port scif2_platform_data = {
80 .mapbase = 0xe6c60000,
81 .flags = UPF_BOOT_AUTOCONF,
82 .scscr = SCSCR_RE | SCSCR_TE,
83 .scbrr_algo_id = SCBRR_ALGO_4,
85 .irqs = { evt2irq(0x0c40), evt2irq(0x0c40),
86 evt2irq(0x0c40), evt2irq(0x0c40) },
89 static struct platform_device scif2_device = {
93 .platform_data = &scif2_platform_data,
98 static struct plat_sci_port scif3_platform_data = {
99 .mapbase = 0xe6c70000,
100 .flags = UPF_BOOT_AUTOCONF,
101 .scscr = SCSCR_RE | SCSCR_TE,
102 .scbrr_algo_id = SCBRR_ALGO_4,
104 .irqs = { evt2irq(0x0c60), evt2irq(0x0c60),
105 evt2irq(0x0c60), evt2irq(0x0c60) },
108 static struct platform_device scif3_device = {
112 .platform_data = &scif3_platform_data,
117 static struct plat_sci_port scif4_platform_data = {
118 .mapbase = 0xe6c80000,
119 .flags = UPF_BOOT_AUTOCONF,
120 .scscr = SCSCR_RE | SCSCR_TE,
121 .scbrr_algo_id = SCBRR_ALGO_4,
123 .irqs = { evt2irq(0x0d20), evt2irq(0x0d20),
124 evt2irq(0x0d20), evt2irq(0x0d20) },
127 static struct platform_device scif4_device = {
131 .platform_data = &scif4_platform_data,
136 static struct plat_sci_port scif5_platform_data = {
137 .mapbase = 0xe6cb0000,
138 .flags = UPF_BOOT_AUTOCONF,
139 .scscr = SCSCR_RE | SCSCR_TE,
140 .scbrr_algo_id = SCBRR_ALGO_4,
142 .irqs = { evt2irq(0x0d40), evt2irq(0x0d40),
143 evt2irq(0x0d40), evt2irq(0x0d40) },
146 static struct platform_device scif5_device = {
150 .platform_data = &scif5_platform_data,
155 static struct plat_sci_port scif6_platform_data = {
156 .mapbase = 0xe6c30000,
157 .flags = UPF_BOOT_AUTOCONF,
158 .scscr = SCSCR_RE | SCSCR_TE,
159 .scbrr_algo_id = SCBRR_ALGO_4,
161 .irqs = { evt2irq(0x0d60), evt2irq(0x0d60),
162 evt2irq(0x0d60), evt2irq(0x0d60) },
165 static struct platform_device scif6_device = {
169 .platform_data = &scif6_platform_data,
174 static struct sh_timer_config cmt2_platform_data = {
176 .channel_offset = 0x40,
178 .clockevent_rating = 125,
179 .clocksource_rating = 125,
182 static struct resource cmt2_resources[] = {
187 .flags = IORESOURCE_MEM,
190 .start = evt2irq(0x0b80), /* CMT2 */
191 .flags = IORESOURCE_IRQ,
195 static struct platform_device cmt2_device = {
199 .platform_data = &cmt2_platform_data,
201 .resource = cmt2_resources,
202 .num_resources = ARRAY_SIZE(cmt2_resources),
206 static struct sh_timer_config tmu00_platform_data = {
208 .channel_offset = 0x4,
210 .clockevent_rating = 200,
213 static struct resource tmu00_resources[] = {
218 .flags = IORESOURCE_MEM,
221 .start = intcs_evt2irq(0xe80), /* TMU_TUNI0 */
222 .flags = IORESOURCE_IRQ,
226 static struct platform_device tmu00_device = {
230 .platform_data = &tmu00_platform_data,
232 .resource = tmu00_resources,
233 .num_resources = ARRAY_SIZE(tmu00_resources),
236 static struct sh_timer_config tmu01_platform_data = {
238 .channel_offset = 0x10,
240 .clocksource_rating = 200,
243 static struct resource tmu01_resources[] = {
248 .flags = IORESOURCE_MEM,
251 .start = intcs_evt2irq(0xea0), /* TMU_TUNI1 */
252 .flags = IORESOURCE_IRQ,
256 static struct platform_device tmu01_device = {
260 .platform_data = &tmu01_platform_data,
262 .resource = tmu01_resources,
263 .num_resources = ARRAY_SIZE(tmu01_resources),
267 static struct resource iic0_resources[] = {
271 .end = 0xFFF20425 - 1,
272 .flags = IORESOURCE_MEM,
275 .start = intcs_evt2irq(0xe00), /* IIC0_ALI0 */
276 .end = intcs_evt2irq(0xe60), /* IIC0_DTEI0 */
277 .flags = IORESOURCE_IRQ,
281 static struct platform_device iic0_device = {
282 .name = "i2c-sh_mobile",
283 .id = 0, /* "i2c0" clock */
284 .num_resources = ARRAY_SIZE(iic0_resources),
285 .resource = iic0_resources,
288 static struct resource iic1_resources[] = {
292 .end = 0xE6C20425 - 1,
293 .flags = IORESOURCE_MEM,
296 .start = evt2irq(0x780), /* IIC1_ALI1 */
297 .end = evt2irq(0x7e0), /* IIC1_DTEI1 */
298 .flags = IORESOURCE_IRQ,
302 static struct platform_device iic1_device = {
303 .name = "i2c-sh_mobile",
304 .id = 1, /* "i2c1" clock */
305 .num_resources = ARRAY_SIZE(iic1_resources),
306 .resource = iic1_resources,
310 /* Transmit sizes and respective CHCR register values */
321 /* log2(size / 8) - used to calculate number of transfers */
323 [XMIT_SZ_8BIT] = 0, \
324 [XMIT_SZ_16BIT] = 1, \
325 [XMIT_SZ_32BIT] = 2, \
326 [XMIT_SZ_64BIT] = 3, \
327 [XMIT_SZ_128BIT] = 4, \
328 [XMIT_SZ_256BIT] = 5, \
329 [XMIT_SZ_512BIT] = 6, \
332 #define TS_INDEX2VAL(i) ((((i) & 3) << 3) | \
333 (((i) & 0xc) << (20 - 2)))
335 static const struct sh_dmae_slave_config sh7372_dmae_slaves[] = {
337 .slave_id = SHDMA_SLAVE_SCIF0_TX,
339 .chcr = DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL(XMIT_SZ_8BIT),
342 .slave_id = SHDMA_SLAVE_SCIF0_RX,
344 .chcr = DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL(XMIT_SZ_8BIT),
347 .slave_id = SHDMA_SLAVE_SCIF1_TX,
349 .chcr = DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL(XMIT_SZ_8BIT),
352 .slave_id = SHDMA_SLAVE_SCIF1_RX,
354 .chcr = DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL(XMIT_SZ_8BIT),
357 .slave_id = SHDMA_SLAVE_SCIF2_TX,
359 .chcr = DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL(XMIT_SZ_8BIT),
362 .slave_id = SHDMA_SLAVE_SCIF2_RX,
364 .chcr = DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL(XMIT_SZ_8BIT),
367 .slave_id = SHDMA_SLAVE_SCIF3_TX,
369 .chcr = DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL(XMIT_SZ_8BIT),
372 .slave_id = SHDMA_SLAVE_SCIF3_RX,
374 .chcr = DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL(XMIT_SZ_8BIT),
377 .slave_id = SHDMA_SLAVE_SCIF4_TX,
379 .chcr = DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL(XMIT_SZ_8BIT),
382 .slave_id = SHDMA_SLAVE_SCIF4_RX,
384 .chcr = DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL(XMIT_SZ_8BIT),
387 .slave_id = SHDMA_SLAVE_SCIF5_TX,
389 .chcr = DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL(XMIT_SZ_8BIT),
392 .slave_id = SHDMA_SLAVE_SCIF5_RX,
394 .chcr = DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL(XMIT_SZ_8BIT),
397 .slave_id = SHDMA_SLAVE_SCIF6_TX,
399 .chcr = DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL(XMIT_SZ_8BIT),
402 .slave_id = SHDMA_SLAVE_SCIF6_RX,
404 .chcr = DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL(XMIT_SZ_8BIT),
407 .slave_id = SHDMA_SLAVE_SDHI0_TX,
409 .chcr = DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL(XMIT_SZ_16BIT),
412 .slave_id = SHDMA_SLAVE_SDHI0_RX,
414 .chcr = DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL(XMIT_SZ_16BIT),
417 .slave_id = SHDMA_SLAVE_SDHI1_TX,
419 .chcr = DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL(XMIT_SZ_16BIT),
422 .slave_id = SHDMA_SLAVE_SDHI1_RX,
424 .chcr = DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL(XMIT_SZ_16BIT),
427 .slave_id = SHDMA_SLAVE_SDHI2_TX,
429 .chcr = DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL(XMIT_SZ_16BIT),
432 .slave_id = SHDMA_SLAVE_SDHI2_RX,
434 .chcr = DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL(XMIT_SZ_16BIT),
437 .slave_id = SHDMA_SLAVE_MMCIF_TX,
439 .chcr = DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL(XMIT_SZ_32BIT),
442 .slave_id = SHDMA_SLAVE_MMCIF_RX,
444 .chcr = DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL(XMIT_SZ_32BIT),
449 #define SH7372_CHCLR 0x220
451 static const struct sh_dmae_channel sh7372_dmae_channels[] = {
456 .chclr_offset = SH7372_CHCLR + 0,
461 .chclr_offset = SH7372_CHCLR + 0x10,
466 .chclr_offset = SH7372_CHCLR + 0x20,
471 .chclr_offset = SH7372_CHCLR + 0x30,
476 .chclr_offset = SH7372_CHCLR + 0x50,
481 .chclr_offset = SH7372_CHCLR + 0x60,
485 static const unsigned int ts_shift[] = TS_SHIFT;
487 static struct sh_dmae_pdata dma_platform_data = {
488 .slave = sh7372_dmae_slaves,
489 .slave_num = ARRAY_SIZE(sh7372_dmae_slaves),
490 .channel = sh7372_dmae_channels,
491 .channel_num = ARRAY_SIZE(sh7372_dmae_channels),
494 .ts_high_shift = (20 - 2), /* 2 bits for shifted low TS */
495 .ts_high_mask = 0x00300000,
496 .ts_shift = ts_shift,
497 .ts_shift_num = ARRAY_SIZE(ts_shift),
498 .dmaor_init = DMAOR_DME,
502 /* Resource order important! */
503 static struct resource sh7372_dmae0_resources[] = {
505 /* Channel registers and DMAOR */
508 .flags = IORESOURCE_MEM,
514 .flags = IORESOURCE_MEM,
518 .start = evt2irq(0x20c0),
519 .end = evt2irq(0x20c0),
520 .flags = IORESOURCE_IRQ,
523 /* IRQ for channels 0-5 */
524 .start = evt2irq(0x2000),
525 .end = evt2irq(0x20a0),
526 .flags = IORESOURCE_IRQ,
530 /* Resource order important! */
531 static struct resource sh7372_dmae1_resources[] = {
533 /* Channel registers and DMAOR */
536 .flags = IORESOURCE_MEM,
542 .flags = IORESOURCE_MEM,
546 .start = evt2irq(0x21c0),
547 .end = evt2irq(0x21c0),
548 .flags = IORESOURCE_IRQ,
551 /* IRQ for channels 0-5 */
552 .start = evt2irq(0x2100),
553 .end = evt2irq(0x21a0),
554 .flags = IORESOURCE_IRQ,
558 /* Resource order important! */
559 static struct resource sh7372_dmae2_resources[] = {
561 /* Channel registers and DMAOR */
564 .flags = IORESOURCE_MEM,
570 .flags = IORESOURCE_MEM,
574 .start = evt2irq(0x22c0),
575 .end = evt2irq(0x22c0),
576 .flags = IORESOURCE_IRQ,
579 /* IRQ for channels 0-5 */
580 .start = evt2irq(0x2200),
581 .end = evt2irq(0x22a0),
582 .flags = IORESOURCE_IRQ,
586 static struct platform_device dma0_device = {
587 .name = "sh-dma-engine",
589 .resource = sh7372_dmae0_resources,
590 .num_resources = ARRAY_SIZE(sh7372_dmae0_resources),
592 .platform_data = &dma_platform_data,
596 static struct platform_device dma1_device = {
597 .name = "sh-dma-engine",
599 .resource = sh7372_dmae1_resources,
600 .num_resources = ARRAY_SIZE(sh7372_dmae1_resources),
602 .platform_data = &dma_platform_data,
606 static struct platform_device dma2_device = {
607 .name = "sh-dma-engine",
609 .resource = sh7372_dmae2_resources,
610 .num_resources = ARRAY_SIZE(sh7372_dmae2_resources),
612 .platform_data = &dma_platform_data,
620 unsigned int usbts_shift[] = {3, 4, 5};
628 #define USBTS_INDEX2VAL(i) (((i) & 3) << 6)
630 static const struct sh_dmae_channel sh7372_usb_dmae_channels[] = {
639 static const struct sh_dmae_slave_config sh7372_usb_dmae0_slaves[] = {
641 .slave_id = SHDMA_SLAVE_USB0_TX,
642 .chcr = USBTS_INDEX2VAL(XMIT_SZ_8BYTE),
644 .slave_id = SHDMA_SLAVE_USB0_RX,
645 .chcr = USBTS_INDEX2VAL(XMIT_SZ_8BYTE),
649 static struct sh_dmae_pdata usb_dma0_platform_data = {
650 .slave = sh7372_usb_dmae0_slaves,
651 .slave_num = ARRAY_SIZE(sh7372_usb_dmae0_slaves),
652 .channel = sh7372_usb_dmae_channels,
653 .channel_num = ARRAY_SIZE(sh7372_usb_dmae_channels),
658 .ts_shift = usbts_shift,
659 .ts_shift_num = ARRAY_SIZE(usbts_shift),
660 .dmaor_init = DMAOR_DME,
662 .chcr_ie_bit = 1 << 5,
668 static struct resource sh7372_usb_dmae0_resources[] = {
670 /* Channel registers and DMAOR */
672 .end = 0xe68a0064 - 1,
673 .flags = IORESOURCE_MEM,
678 .end = 0xe68a0014 - 1,
679 .flags = IORESOURCE_MEM,
682 /* IRQ for channels */
683 .start = evt2irq(0x0a00),
684 .end = evt2irq(0x0a00),
685 .flags = IORESOURCE_IRQ,
689 static struct platform_device usb_dma0_device = {
690 .name = "sh-dma-engine",
692 .resource = sh7372_usb_dmae0_resources,
693 .num_resources = ARRAY_SIZE(sh7372_usb_dmae0_resources),
695 .platform_data = &usb_dma0_platform_data,
700 static const struct sh_dmae_slave_config sh7372_usb_dmae1_slaves[] = {
702 .slave_id = SHDMA_SLAVE_USB1_TX,
703 .chcr = USBTS_INDEX2VAL(XMIT_SZ_8BYTE),
705 .slave_id = SHDMA_SLAVE_USB1_RX,
706 .chcr = USBTS_INDEX2VAL(XMIT_SZ_8BYTE),
710 static struct sh_dmae_pdata usb_dma1_platform_data = {
711 .slave = sh7372_usb_dmae1_slaves,
712 .slave_num = ARRAY_SIZE(sh7372_usb_dmae1_slaves),
713 .channel = sh7372_usb_dmae_channels,
714 .channel_num = ARRAY_SIZE(sh7372_usb_dmae_channels),
719 .ts_shift = usbts_shift,
720 .ts_shift_num = ARRAY_SIZE(usbts_shift),
721 .dmaor_init = DMAOR_DME,
723 .chcr_ie_bit = 1 << 5,
729 static struct resource sh7372_usb_dmae1_resources[] = {
731 /* Channel registers and DMAOR */
733 .end = 0xe68c0064 - 1,
734 .flags = IORESOURCE_MEM,
739 .end = 0xe68c0014 - 1,
740 .flags = IORESOURCE_MEM,
743 /* IRQ for channels */
744 .start = evt2irq(0x1d00),
745 .end = evt2irq(0x1d00),
746 .flags = IORESOURCE_IRQ,
750 static struct platform_device usb_dma1_device = {
751 .name = "sh-dma-engine",
753 .resource = sh7372_usb_dmae1_resources,
754 .num_resources = ARRAY_SIZE(sh7372_usb_dmae1_resources),
756 .platform_data = &usb_dma1_platform_data,
761 static struct uio_info vpu_platform_data = {
764 .irq = intcs_evt2irq(0x980),
767 static struct resource vpu_resources[] = {
772 .flags = IORESOURCE_MEM,
776 static struct platform_device vpu_device = {
777 .name = "uio_pdrv_genirq",
780 .platform_data = &vpu_platform_data,
782 .resource = vpu_resources,
783 .num_resources = ARRAY_SIZE(vpu_resources),
787 static struct uio_info veu0_platform_data = {
790 .irq = intcs_evt2irq(0x700),
793 static struct resource veu0_resources[] = {
798 .flags = IORESOURCE_MEM,
802 static struct platform_device veu0_device = {
803 .name = "uio_pdrv_genirq",
806 .platform_data = &veu0_platform_data,
808 .resource = veu0_resources,
809 .num_resources = ARRAY_SIZE(veu0_resources),
813 static struct uio_info veu1_platform_data = {
816 .irq = intcs_evt2irq(0x720),
819 static struct resource veu1_resources[] = {
824 .flags = IORESOURCE_MEM,
828 static struct platform_device veu1_device = {
829 .name = "uio_pdrv_genirq",
832 .platform_data = &veu1_platform_data,
834 .resource = veu1_resources,
835 .num_resources = ARRAY_SIZE(veu1_resources),
839 static struct uio_info veu2_platform_data = {
842 .irq = intcs_evt2irq(0x740),
845 static struct resource veu2_resources[] = {
850 .flags = IORESOURCE_MEM,
854 static struct platform_device veu2_device = {
855 .name = "uio_pdrv_genirq",
858 .platform_data = &veu2_platform_data,
860 .resource = veu2_resources,
861 .num_resources = ARRAY_SIZE(veu2_resources),
865 static struct uio_info veu3_platform_data = {
868 .irq = intcs_evt2irq(0x760),
871 static struct resource veu3_resources[] = {
876 .flags = IORESOURCE_MEM,
880 static struct platform_device veu3_device = {
881 .name = "uio_pdrv_genirq",
884 .platform_data = &veu3_platform_data,
886 .resource = veu3_resources,
887 .num_resources = ARRAY_SIZE(veu3_resources),
891 static struct uio_info jpu_platform_data = {
894 .irq = intcs_evt2irq(0x560),
897 static struct resource jpu_resources[] = {
902 .flags = IORESOURCE_MEM,
906 static struct platform_device jpu_device = {
907 .name = "uio_pdrv_genirq",
910 .platform_data = &jpu_platform_data,
912 .resource = jpu_resources,
913 .num_resources = ARRAY_SIZE(jpu_resources),
917 static struct uio_info spu0_platform_data = {
920 .irq = evt2irq(0x1800),
923 static struct resource spu0_resources[] = {
928 .flags = IORESOURCE_MEM,
932 static struct platform_device spu0_device = {
933 .name = "uio_pdrv_genirq",
936 .platform_data = &spu0_platform_data,
938 .resource = spu0_resources,
939 .num_resources = ARRAY_SIZE(spu0_resources),
943 static struct uio_info spu1_platform_data = {
946 .irq = evt2irq(0x1820),
949 static struct resource spu1_resources[] = {
954 .flags = IORESOURCE_MEM,
958 static struct platform_device spu1_device = {
959 .name = "uio_pdrv_genirq",
962 .platform_data = &spu1_platform_data,
964 .resource = spu1_resources,
965 .num_resources = ARRAY_SIZE(spu1_resources),
968 static struct platform_device *sh7372_early_devices[] __initdata = {
981 static struct platform_device *sh7372_late_devices[] __initdata = {
999 void __init sh7372_add_standard_devices(void)
1001 sh7372_init_pm_domain(&sh7372_a4lc);
1002 sh7372_init_pm_domain(&sh7372_a4mp);
1003 sh7372_init_pm_domain(&sh7372_d4);
1004 sh7372_init_pm_domain(&sh7372_a4r);
1005 sh7372_init_pm_domain(&sh7372_a3rv);
1006 sh7372_init_pm_domain(&sh7372_a3ri);
1007 sh7372_init_pm_domain(&sh7372_a4s);
1008 sh7372_init_pm_domain(&sh7372_a3sp);
1009 sh7372_init_pm_domain(&sh7372_a3sg);
1011 sh7372_pm_add_subdomain(&sh7372_a4lc, &sh7372_a3rv);
1012 sh7372_pm_add_subdomain(&sh7372_a4r, &sh7372_a4lc);
1014 sh7372_pm_add_subdomain(&sh7372_a4s, &sh7372_a3sg);
1015 sh7372_pm_add_subdomain(&sh7372_a4s, &sh7372_a3sp);
1017 platform_add_devices(sh7372_early_devices,
1018 ARRAY_SIZE(sh7372_early_devices));
1020 platform_add_devices(sh7372_late_devices,
1021 ARRAY_SIZE(sh7372_late_devices));
1023 sh7372_add_device_to_domain(&sh7372_a3rv, &vpu_device);
1024 sh7372_add_device_to_domain(&sh7372_a4mp, &spu0_device);
1025 sh7372_add_device_to_domain(&sh7372_a4mp, &spu1_device);
1026 sh7372_add_device_to_domain(&sh7372_a3sp, &scif0_device);
1027 sh7372_add_device_to_domain(&sh7372_a3sp, &scif1_device);
1028 sh7372_add_device_to_domain(&sh7372_a3sp, &scif2_device);
1029 sh7372_add_device_to_domain(&sh7372_a3sp, &scif3_device);
1030 sh7372_add_device_to_domain(&sh7372_a3sp, &scif4_device);
1031 sh7372_add_device_to_domain(&sh7372_a3sp, &scif5_device);
1032 sh7372_add_device_to_domain(&sh7372_a3sp, &scif6_device);
1033 sh7372_add_device_to_domain(&sh7372_a3sp, &iic1_device);
1034 sh7372_add_device_to_domain(&sh7372_a3sp, &dma0_device);
1035 sh7372_add_device_to_domain(&sh7372_a3sp, &dma1_device);
1036 sh7372_add_device_to_domain(&sh7372_a3sp, &dma2_device);
1037 sh7372_add_device_to_domain(&sh7372_a3sp, &usb_dma0_device);
1038 sh7372_add_device_to_domain(&sh7372_a3sp, &usb_dma1_device);
1039 sh7372_add_device_to_domain(&sh7372_a4r, &iic0_device);
1040 sh7372_add_device_to_domain(&sh7372_a4r, &veu0_device);
1041 sh7372_add_device_to_domain(&sh7372_a4r, &veu1_device);
1042 sh7372_add_device_to_domain(&sh7372_a4r, &veu2_device);
1043 sh7372_add_device_to_domain(&sh7372_a4r, &veu3_device);
1044 sh7372_add_device_to_domain(&sh7372_a4r, &jpu_device);
1047 void __init sh7372_add_early_devices(void)
1049 early_platform_add_devices(sh7372_early_devices,
1050 ARRAY_SIZE(sh7372_early_devices));