]> git.karo-electronics.de Git - mv-sheeva.git/blob - arch/sh/kernel/cpu/sh5/setup-sh5.c
sh: Integrate the SH-5 onchip_remap() more coherently.
[mv-sheeva.git] / arch / sh / kernel / cpu / sh5 / setup-sh5.c
1 /*
2  * SH5-101/SH5-103 CPU Setup
3  *
4  *  Copyright (C) 2009  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 #include <linux/io.h>
15 #include <linux/mm.h>
16 #include <asm/addrspace.h>
17
18 static struct plat_sci_port sci_platform_data[] = {
19         {
20                 .mapbase        = PHYS_PERIPHERAL_BLOCK + 0x01030000,
21                 .flags          = UPF_BOOT_AUTOCONF | UPF_IOREMAP,
22                 .type           = PORT_SCIF,
23                 .irqs           = { 39, 40, 42, 0 },
24         }, {
25                 .flags = 0,
26         }
27 };
28
29 static struct platform_device sci_device = {
30         .name           = "sh-sci",
31         .id             = -1,
32         .dev            = {
33                 .platform_data  = sci_platform_data,
34         },
35 };
36
37 static struct platform_device *sh5_devices[] __initdata = {
38         &sci_device,
39 };
40
41 static int __init sh5_devices_setup(void)
42 {
43         return platform_add_devices(sh5_devices,
44                                     ARRAY_SIZE(sh5_devices));
45 }
46 __initcall(sh5_devices_setup);