sh: sh2a scif pdata (sh7201/sh7203/sh7206/mxg)
PATCH 2/7 sh: sh2a scif pdata (sh7201/sh7203/sh7206/mxg)
From: Magnus Damm <[email protected]>
This patch breaks out the sh2a scif serial port platform data from a shared platform device to one platform device per port. Also, add serial ports to the list of early platform devices.
Signed-off-by Magnus Damm <[email protected]>
---
arch/sh/kernel/cpu/sh2a/setup-mxg.c | 23 +--- arch/sh/kernel/cpu/sh2a/setup-sh7201.c | 177 +++++++++++++++++++++++--------- arch/sh/kernel/cpu/sh2a/setup-sh7203.c | 89 +++++++++++----- arch/sh/kernel/cpu/sh2a/setup-sh7206.c | 89 +++++++++++----- 4 files changed, 261 insertions(+), 117 deletions(-)
arch/sh/kernel/cpu/sh2a/setup-mxg.c +10 -13
@@ -207,27 +207,23 @@ static struct platform_device mtu2_2_dev .num_resources = ARRAY_SIZE(mtu2_2_resources), }; -static struct plat_sci_port sci_platform_data[] = { - { - .mapbase =0xff804000 , - .flags =UPF_BOOT_AUTOCONF , - .type =PORT_SCIF , - .irqs = {220 ,220 ,220 ,220 }, - }, { - .flags =0 , - } +static struct plat_sci_port scif0_platform_data = { + .mapbase =0xff804000 , + .flags =UPF_BOOT_AUTOCONF , + .type =PORT_SCIF , + .irqs = {220 ,220 ,220 ,220 }, }; -static struct platform_device sci_device = { +static struct platform_device scif0_device = { .name ="sh-sci" , - .id =-1 , + .id =0 , .dev = { - .platform_data = sci_platform_data, + .platform_data = &scif0_platform_data, }, };static struct platform_device *mxg_devices[]__initdata = { - &sci_device, + &scif0_device, &mtu2_0_device, &mtu2_1_device, &mtu2_2_device,
@@ -246,6 +242,7 @@ void __init plat_irq_setup(void) }static struct platform_device *mxg_early_devices[]__initdata = { + &scif0_device, &mtu2_0_device, &mtu2_1_device, &mtu2_2_device,
arch/sh/kernel/cpu/sh2a/setup-sh7201.c +129 -48
199 lines not on this page · raw message
arch/sh/kernel/cpu/sh2a/setup-sh7203.c +61 -28
111 lines not on this page · raw message
arch/sh/kernel/cpu/sh2a/setup-sh7206.c +61 -28
111 lines not on this page · raw message