Commit d8d3fbb0 authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt

sh: sh5 scif pdata (sh5-101/sh5-103)

This patch breaks out the sh5 scif serial port platform
data from a shared platform device to one platform
device per port. Also, move the serial port to the list
of early platform devices.
Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent a9571d7b
...@@ -16,22 +16,18 @@ ...@@ -16,22 +16,18 @@
#include <linux/sh_timer.h> #include <linux/sh_timer.h>
#include <asm/addrspace.h> #include <asm/addrspace.h>
static struct plat_sci_port sci_platform_data[] = { static struct plat_sci_port scif0_platform_data = {
{ .mapbase = PHYS_PERIPHERAL_BLOCK + 0x01030000,
.mapbase = PHYS_PERIPHERAL_BLOCK + 0x01030000, .flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP,
.flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP, .type = PORT_SCIF,
.type = PORT_SCIF, .irqs = { 39, 40, 42, 0 },
.irqs = { 39, 40, 42, 0 },
}, {
.flags = 0,
}
}; };
static struct platform_device sci_device = { static struct platform_device scif0_device = {
.name = "sh-sci", .name = "sh-sci",
.id = -1, .id = 0,
.dev = { .dev = {
.platform_data = sci_platform_data, .platform_data = &scif0_platform_data,
}, },
}; };
...@@ -164,13 +160,13 @@ static struct platform_device tmu2_device = { ...@@ -164,13 +160,13 @@ static struct platform_device tmu2_device = {
}; };
static struct platform_device *sh5_early_devices[] __initdata = { static struct platform_device *sh5_early_devices[] __initdata = {
&scif0_device,
&tmu0_device, &tmu0_device,
&tmu1_device, &tmu1_device,
&tmu2_device, &tmu2_device,
}; };
static struct platform_device *sh5_devices[] __initdata = { static struct platform_device *sh5_devices[] __initdata = {
&sci_device,
&rtc_device, &rtc_device,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment