Merge master.kernel.org:/pub/scm/linux/kernel/git/steve/gfs2-2.6-nmw
[pandora-kernel.git] / arch / sh / kernel / cpu / sh2a / setup-sh7206.c
1 /*
2  * SH7206 Setup
3  *
4  *  Copyright (C) 2006  Yoshinori Sato
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 <asm/sci.h>
14
15 static struct plat_sci_port sci_platform_data[] = {
16         {
17                 .mapbase        = 0xfffe8000,
18                 .flags          = UPF_BOOT_AUTOCONF,
19                 .type           = PORT_SCIF,
20                 .irqs           =  { 240, 241, 242, 243},
21         }, {
22                 .mapbase        = 0xfffe8800,
23                 .flags          = UPF_BOOT_AUTOCONF,
24                 .type           = PORT_SCIF,
25                 .irqs           =  { 244, 245, 246, 247},
26         }, {
27                 .mapbase        = 0xfffe9000,
28                 .flags          = UPF_BOOT_AUTOCONF,
29                 .type           = PORT_SCIF,
30                 .irqs           =  { 248, 249, 250, 251},
31         }, {
32                 .mapbase        = 0xfffe9800,
33                 .flags          = UPF_BOOT_AUTOCONF,
34                 .type           = PORT_SCIF,
35                 .irqs           =  { 252, 253, 254, 255},
36         }, {
37                 .flags = 0,
38         }
39 };
40
41 static struct platform_device sci_device = {
42         .name           = "sh-sci",
43         .id             = -1,
44         .dev            = {
45                 .platform_data  = sci_platform_data,
46         },
47 };
48
49 static struct platform_device *sh7206_devices[] __initdata = {
50         &sci_device,
51 };
52
53 static int __init sh7206_devices_setup(void)
54 {
55         return platform_add_devices(sh7206_devices,
56                                     ARRAY_SIZE(sh7206_devices));
57 }
58 __initcall(sh7206_devices_setup);