sh: Add support for SH7206 and SH7619 CPU subtypes.
[linux-2.6/mini2440.git] / arch / sh / kernel / cpu / sh2a / setup-sh7206.c
blobcdfeef49e62ea811b2348a95836d7e7d878401a0
1 /*
2 * SH7206 Setup
4 * Copyright (C) 2006 Yoshinori Sato
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>
15 static struct plat_sci_port sci_platform_data[] = {
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,
41 static struct platform_device sci_device = {
42 .name = "sh-sci",
43 .id = -1,
44 .dev = {
45 .platform_data = sci_platform_data,
49 static struct platform_device *sh7206_devices[] __initdata = {
50 &sci_device,
53 static int __init sh7206_devices_setup(void)
55 return platform_add_devices(sh7206_devices,
56 ARRAY_SIZE(sh7206_devices));
58 __initcall(sh7206_devices_setup);