aboutsummaryrefslogtreecommitdiff
path: root/arch/sh/kernel/cpu/sh5/setup-sh5.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2014-01-02 10:54:34 -0800
committerOlof Johansson <olof@lixom.net>2014-01-02 10:54:34 -0800
commitefcf3d38f128cfbfc7a62c3a5dc3fb42991c12e5 (patch)
treee581e1bb663d960f3ef3cae6191a3ec792c52ae4 /arch/sh/kernel/cpu/sh5/setup-sh5.c
parent6878e0c0a52a0937e98872c9a8ecc374c266d418 (diff)
parentd5917ef318b850fc72bd10db438580f7d1c406d9 (diff)
Merge tag 'renesas-sh-soc-for-v3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/drivers
Renesas SH based SoC Updates for v3.14 * Global - Don't set plat_sci_port scbrr_algo_id field - Declare SCIF register base and IRQ as resources * sh772[34] SoCs - Set serial port sampling rate to 8 for SCIFA ports (These are merged through arm-soc due to dependencies with the SCI platform data rework done for shmobile) * tag 'renesas-sh-soc-for-v3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas: sh: Don't set plat_sci_port scbrr_algo_id field sh: sh772[34]: Set serial port sampling rate to 8 for SCIFA ports sh: Declare SCIF register base and IRQ as resources Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/sh/kernel/cpu/sh5/setup-sh5.c')
-rw-r--r--arch/sh/kernel/cpu/sh5/setup-sh5.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/sh/kernel/cpu/sh5/setup-sh5.c b/arch/sh/kernel/cpu/sh5/setup-sh5.c
index 18419f1de96..14d68213d16 100644
--- a/arch/sh/kernel/cpu/sh5/setup-sh5.c
+++ b/arch/sh/kernel/cpu/sh5/setup-sh5.c
@@ -17,17 +17,23 @@
#include <asm/addrspace.h>
static struct plat_sci_port scif0_platform_data = {
- .mapbase = PHYS_PERIPHERAL_BLOCK + 0x01030000,
.flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP,
.scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE,
- .scbrr_algo_id = SCBRR_ALGO_2,
.type = PORT_SCIF,
- .irqs = { 39, 40, 42, 0 },
+};
+
+static struct resource scif0_resources[] = {
+ DEFINE_RES_MEM(PHYS_PERIPHERAL_BLOCK + 0x01030000, 0x100),
+ DEFINE_RES_IRQ(39),
+ DEFINE_RES_IRQ(40),
+ DEFINE_RES_IRQ(42),
};
static struct platform_device scif0_device = {
.name = "sh-sci",
.id = 0,
+ .resource = scif0_resources,
+ .num_resources = ARRAY_SIZE(scif0_resources),
.dev = {
.platform_data = &scif0_platform_data,
},