Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[wrt350n-kernel.git] / arch / sh / kernel / cpu / sh4a / setup-sh7770.c
blob9b28facf6df52ae337928f87c14291c7f47b2508
1 /*
2 * SH7770 Setup
4 * Copyright (C) 2006 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
8 * for more details.
9 */
10 #include <linux/platform_device.h>
11 #include <linux/init.h>
12 #include <linux/serial.h>
13 <<<<<<< HEAD:arch/sh/kernel/cpu/sh4a/setup-sh7770.c
14 #include <asm/sci.h>
15 =======
16 #include <linux/serial_sci.h>
17 >>>>>>> 264e3e889d86e552b4191d69bb60f4f3b383135a:arch/sh/kernel/cpu/sh4a/setup-sh7770.c
19 static struct plat_sci_port sci_platform_data[] = {
21 .mapbase = 0xff923000,
22 .flags = UPF_BOOT_AUTOCONF,
23 .type = PORT_SCIF,
24 .irqs = { 61, 61, 61, 61 },
25 }, {
26 .mapbase = 0xff924000,
27 .flags = UPF_BOOT_AUTOCONF,
28 .type = PORT_SCIF,
29 .irqs = { 62, 62, 62, 62 },
30 }, {
31 .mapbase = 0xff925000,
32 .flags = UPF_BOOT_AUTOCONF,
33 .type = PORT_SCIF,
34 .irqs = { 63, 63, 63, 63 },
35 }, {
36 .flags = 0,
40 static struct platform_device sci_device = {
41 .name = "sh-sci",
42 .id = -1,
43 .dev = {
44 .platform_data = sci_platform_data,
48 static struct platform_device *sh7770_devices[] __initdata = {
49 &sci_device,
52 static int __init sh7770_devices_setup(void)
54 return platform_add_devices(sh7770_devices,
55 ARRAY_SIZE(sh7770_devices));
57 __initcall(sh7770_devices_setup);
59 void __init plat_irq_setup(void)