xref: /linux/arch/sh/kernel/cpu/sh4a/setup-sh7770.c (revision 367b8112fe2ea5c39a7bb4d263dcdd9b612fae18)
1 /*
2  * SH7770 Setup
3  *
4  *  Copyright (C) 2006 - 2008  Paul Mundt
5  *
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
8  * for more details.
9  */
10 #include <linux/platform_device.h>
11 #include <linux/init.h>
12 #include <linux/serial.h>
13 #include <linux/serial_sci.h>
14 
15 static struct plat_sci_port sci_platform_data[] = {
16 	{
17 		.mapbase	= 0xff923000,
18 		.flags		= UPF_BOOT_AUTOCONF,
19 		.type		= PORT_SCIF,
20 		.irqs		= { 61, 61, 61, 61 },
21 	}, {
22 		.mapbase	= 0xff924000,
23 		.flags		= UPF_BOOT_AUTOCONF,
24 		.type		= PORT_SCIF,
25 		.irqs		= { 62, 62, 62, 62 },
26 	}, {
27 		.mapbase	= 0xff925000,
28 		.flags		= UPF_BOOT_AUTOCONF,
29 		.type		= PORT_SCIF,
30 		.irqs		= { 63, 63, 63, 63 },
31 	}, {
32 		.mapbase	= 0xff926000,
33 		.flags		= UPF_BOOT_AUTOCONF,
34 		.type		= PORT_SCIF,
35 		.irqs		= { 64, 64, 64, 64 },
36 	}, {
37 		.mapbase	= 0xff927000,
38 		.flags		= UPF_BOOT_AUTOCONF,
39 		.type		= PORT_SCIF,
40 		.irqs		= { 65, 65, 65, 65 },
41 	}, {
42 		.mapbase	= 0xff928000,
43 		.flags		= UPF_BOOT_AUTOCONF,
44 		.type		= PORT_SCIF,
45 		.irqs		= { 66, 66, 66, 66 },
46 	}, {
47 		.mapbase	= 0xff929000,
48 		.flags		= UPF_BOOT_AUTOCONF,
49 		.type		= PORT_SCIF,
50 		.irqs		= { 67, 67, 67, 67 },
51 	}, {
52 		.mapbase	= 0xff92a000,
53 		.flags		= UPF_BOOT_AUTOCONF,
54 		.type		= PORT_SCIF,
55 		.irqs		= { 68, 68, 68, 68 },
56 	}, {
57 		.mapbase	= 0xff92b000,
58 		.flags		= UPF_BOOT_AUTOCONF,
59 		.type		= PORT_SCIF,
60 		.irqs		= { 69, 69, 69, 69 },
61 	}, {
62 		.mapbase	= 0xff92c000,
63 		.flags		= UPF_BOOT_AUTOCONF,
64 		.type		= PORT_SCIF,
65 		.irqs		= { 70, 70, 70, 70 },
66 	}, {
67 		.flags = 0,
68 	}
69 };
70 
71 static struct platform_device sci_device = {
72 	.name		= "sh-sci",
73 	.id		= -1,
74 	.dev		= {
75 		.platform_data	= sci_platform_data,
76 	},
77 };
78 
79 static struct platform_device *sh7770_devices[] __initdata = {
80 	&sci_device,
81 };
82 
83 static int __init sh7770_devices_setup(void)
84 {
85 	return platform_add_devices(sh7770_devices,
86 				    ARRAY_SIZE(sh7770_devices));
87 }
88 __initcall(sh7770_devices_setup);
89 
90 void __init plat_irq_setup(void)
91 {
92 }
93