aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh2/setup-sh7619.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-06-24 05:23:52 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-06-24 05:23:52 -0400
commit26c92f3728d738aaa7e4859d5581323cd68096dd (patch)
treeb7cc2f49a6ffe6a6b88d19b33547a370ae314de6 /arch/sh/kernel/cpu/sh2/setup-sh7619.c
parent00b9de9c249f51f09c19aa41cbbb3e3eb4eea807 (diff)
serial: sh-sci: Move SCBRR calculation algo in to platform data.
This permits each port to select its own SCBRR calculation algorithm, rather than having it all ifdef'ed in the header. There are presently only 5 different variations that all parts fall under. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh2/setup-sh7619.c')
-rw-r--r--arch/sh/kernel/cpu/sh2/setup-sh7619.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh2/setup-sh7619.c b/arch/sh/kernel/cpu/sh2/setup-sh7619.c
index ace016b17036..86acede777b9 100644
--- a/arch/sh/kernel/cpu/sh2/setup-sh7619.c
+++ b/arch/sh/kernel/cpu/sh2/setup-sh7619.c
@@ -64,18 +64,21 @@ static struct plat_sci_port sci_platform_data[] = {
64 .mapbase = 0xf8400000, 64 .mapbase = 0xf8400000,
65 .flags = UPF_BOOT_AUTOCONF, 65 .flags = UPF_BOOT_AUTOCONF,
66 .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, 66 .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE,
67 .scbrr_algo_id = SCBRR_ALGO_2,
67 .type = PORT_SCIF, 68 .type = PORT_SCIF,
68 .irqs = { 88, 88, 88, 88 }, 69 .irqs = { 88, 88, 88, 88 },
69 }, { 70 }, {
70 .mapbase = 0xf8410000, 71 .mapbase = 0xf8410000,
71 .flags = UPF_BOOT_AUTOCONF, 72 .flags = UPF_BOOT_AUTOCONF,
72 .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, 73 .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE,
74 .scbrr_algo_id = SCBRR_ALGO_2,
73 .type = PORT_SCIF, 75 .type = PORT_SCIF,
74 .irqs = { 92, 92, 92, 92 }, 76 .irqs = { 92, 92, 92, 92 },
75 }, { 77 }, {
76 .mapbase = 0xf8420000, 78 .mapbase = 0xf8420000,
77 .flags = UPF_BOOT_AUTOCONF, 79 .flags = UPF_BOOT_AUTOCONF,
78 .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, 80 .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE,
81 .scbrr_algo_id = SCBRR_ALGO_2,
79 .type = PORT_SCIF, 82 .type = PORT_SCIF,
80 .irqs = { 96, 96, 96, 96 }, 83 .irqs = { 96, 96, 96, 96 },
81 }, { 84 }, {