diff options
| author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-12-06 04:59:49 -0500 |
|---|---|---|
| committer | Simon Horman <horms+renesas@verge.net.au> | 2013-12-24 07:49:43 -0500 |
| commit | 64c535e942af6cfe59ceceeb9bc6ba5f437a2fc9 (patch) | |
| tree | e64a2f6d743d51ec0435eb46f490d39116063c93 | |
| parent | d850acf975bee46e43c3cd80d2d287010195c63b (diff) | |
sh: sh772[34]: Set serial port sampling rate to 8 for SCIFA ports
SCIFA ports on sh7723 and sh7724 seem to use a sampling rate of half the
value specified in the datasheet. This is currently handled by a custom
baud rate calculation algorithm. The algorithm ID will be removed from
platform data, set the sampling rate directly instead.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
| -rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7723.c | 6 | ||||
| -rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7724.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c index 521a09ef4ffe..079951be4122 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c | |||
| @@ -98,7 +98,7 @@ static struct plat_sci_port scif3_platform_data = { | |||
| 98 | .flags = UPF_BOOT_AUTOCONF, | 98 | .flags = UPF_BOOT_AUTOCONF, |
| 99 | .port_reg = SCIx_NOT_SUPPORTED, | 99 | .port_reg = SCIx_NOT_SUPPORTED, |
| 100 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 100 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
| 101 | .scbrr_algo_id = SCBRR_ALGO_3, | 101 | .sampling_rate = 8, |
| 102 | .type = PORT_SCIFA, | 102 | .type = PORT_SCIFA, |
| 103 | }; | 103 | }; |
| 104 | 104 | ||
| @@ -121,7 +121,7 @@ static struct plat_sci_port scif4_platform_data = { | |||
| 121 | .port_reg = SCIx_NOT_SUPPORTED, | 121 | .port_reg = SCIx_NOT_SUPPORTED, |
| 122 | .flags = UPF_BOOT_AUTOCONF, | 122 | .flags = UPF_BOOT_AUTOCONF, |
| 123 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 123 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
| 124 | .scbrr_algo_id = SCBRR_ALGO_3, | 124 | .sampling_rate = 8, |
| 125 | .type = PORT_SCIFA, | 125 | .type = PORT_SCIFA, |
| 126 | }; | 126 | }; |
| 127 | 127 | ||
| @@ -144,7 +144,7 @@ static struct plat_sci_port scif5_platform_data = { | |||
| 144 | .port_reg = SCIx_NOT_SUPPORTED, | 144 | .port_reg = SCIx_NOT_SUPPORTED, |
| 145 | .flags = UPF_BOOT_AUTOCONF, | 145 | .flags = UPF_BOOT_AUTOCONF, |
| 146 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 146 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
| 147 | .scbrr_algo_id = SCBRR_ALGO_3, | 147 | .sampling_rate = 8, |
| 148 | .type = PORT_SCIFA, | 148 | .type = PORT_SCIFA, |
| 149 | }; | 149 | }; |
| 150 | 150 | ||
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c index fb0a23749147..59c359469f13 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c | |||
| @@ -365,7 +365,7 @@ static struct plat_sci_port scif3_platform_data = { | |||
| 365 | .port_reg = SCIx_NOT_SUPPORTED, | 365 | .port_reg = SCIx_NOT_SUPPORTED, |
| 366 | .flags = UPF_BOOT_AUTOCONF, | 366 | .flags = UPF_BOOT_AUTOCONF, |
| 367 | .scscr = SCSCR_RE | SCSCR_TE, | 367 | .scscr = SCSCR_RE | SCSCR_TE, |
| 368 | .scbrr_algo_id = SCBRR_ALGO_3, | 368 | .sampling_rate = 8, |
| 369 | .type = PORT_SCIFA, | 369 | .type = PORT_SCIFA, |
| 370 | }; | 370 | }; |
| 371 | 371 | ||
| @@ -388,7 +388,7 @@ static struct plat_sci_port scif4_platform_data = { | |||
| 388 | .port_reg = SCIx_NOT_SUPPORTED, | 388 | .port_reg = SCIx_NOT_SUPPORTED, |
| 389 | .flags = UPF_BOOT_AUTOCONF, | 389 | .flags = UPF_BOOT_AUTOCONF, |
| 390 | .scscr = SCSCR_RE | SCSCR_TE, | 390 | .scscr = SCSCR_RE | SCSCR_TE, |
| 391 | .scbrr_algo_id = SCBRR_ALGO_3, | 391 | .sampling_rate = 8, |
| 392 | .type = PORT_SCIFA, | 392 | .type = PORT_SCIFA, |
| 393 | }; | 393 | }; |
| 394 | 394 | ||
| @@ -411,7 +411,7 @@ static struct plat_sci_port scif5_platform_data = { | |||
| 411 | .port_reg = SCIx_NOT_SUPPORTED, | 411 | .port_reg = SCIx_NOT_SUPPORTED, |
| 412 | .flags = UPF_BOOT_AUTOCONF, | 412 | .flags = UPF_BOOT_AUTOCONF, |
| 413 | .scscr = SCSCR_RE | SCSCR_TE, | 413 | .scscr = SCSCR_RE | SCSCR_TE, |
| 414 | .scbrr_algo_id = SCBRR_ALGO_3, | 414 | .sampling_rate = 8, |
| 415 | .type = PORT_SCIFA, | 415 | .type = PORT_SCIFA, |
| 416 | }; | 416 | }; |
| 417 | 417 | ||
