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>
15 static struct plat_sci_port sci_platform_data
[] = {
17 .mapbase
= 0xff923000,
18 .flags
= UPF_BOOT_AUTOCONF
,
20 .irqs
= { 61, 61, 61, 61 },
22 .mapbase
= 0xff924000,
23 .flags
= UPF_BOOT_AUTOCONF
,
25 .irqs
= { 62, 62, 62, 62 },
27 .mapbase
= 0xff925000,
28 .flags
= UPF_BOOT_AUTOCONF
,
30 .irqs
= { 63, 63, 63, 63 },
32 .mapbase
= 0xff926000,
33 .flags
= UPF_BOOT_AUTOCONF
,
35 .irqs
= { 64, 64, 64, 64 },
37 .mapbase
= 0xff927000,
38 .flags
= UPF_BOOT_AUTOCONF
,
40 .irqs
= { 65, 65, 65, 65 },
42 .mapbase
= 0xff928000,
43 .flags
= UPF_BOOT_AUTOCONF
,
45 .irqs
= { 66, 66, 66, 66 },
47 .mapbase
= 0xff929000,
48 .flags
= UPF_BOOT_AUTOCONF
,
50 .irqs
= { 67, 67, 67, 67 },
52 .mapbase
= 0xff92a000,
53 .flags
= UPF_BOOT_AUTOCONF
,
55 .irqs
= { 68, 68, 68, 68 },
57 .mapbase
= 0xff92b000,
58 .flags
= UPF_BOOT_AUTOCONF
,
60 .irqs
= { 69, 69, 69, 69 },
62 .mapbase
= 0xff92c000,
63 .flags
= UPF_BOOT_AUTOCONF
,
65 .irqs
= { 70, 70, 70, 70 },
71 static struct platform_device sci_device
= {
75 .platform_data
= sci_platform_data
,
79 static struct platform_device
*sh7770_devices
[] __initdata
= {
83 static int __init
sh7770_devices_setup(void)
85 return platform_add_devices(sh7770_devices
,
86 ARRAY_SIZE(sh7770_devices
));
88 __initcall(sh7770_devices_setup
);
90 void __init
plat_irq_setup(void)