aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh2a/setup-sh7206.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-12-06 10:59:20 +0100
committerSimon Horman <horms+renesas@verge.net.au>2013-12-24 11:17:53 +0900
commitec09c5eb491834d4011c72538e58d8b7096076bd (patch)
treec493ee1a5617cc46fe4bbb63fcf28d5d5a9e8b3f /arch/sh/kernel/cpu/sh2a/setup-sh7206.c
parentserial: sh-sci: Compute overrun_bit without using baud rate algo (diff)
downloadlinux-dev-ec09c5eb491834d4011c72538e58d8b7096076bd.tar.xz
linux-dev-ec09c5eb491834d4011c72538e58d8b7096076bd.zip
serial: sh-sci: Rework baud rate calculation
Computing the baud rate register value requires knowledge of the hardware sampling rate. This information is currently encoded in a baud rate calculation algorithm ID passed through platform data. However, it can be derived from the port type directly in most cases. Compute the sampling rate internally in the driver if the baud rate calculation algorithm ID isn't specified, and allow platforms to override the sampling rate through platform data in special cases (this is only required for SCIFA ports on sh7723 and sh7724, the reason needs to be investigated). Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/sh/kernel/cpu/sh2a/setup-sh7206.c')
0 files changed, 0 insertions, 0 deletions