aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/hvc
diff options
context:
space:
mode:
authorDong Aisheng <aisheng.dong@nxp.com>2017-06-13 10:55:54 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-29 17:12:34 +0200
commita6d7514b14a6ea2a3868bdcb2fca7b2410738595 (patch)
tree3918fd8bdc99cec55f3e144fc66584a853bbd5ad /drivers/tty/hvc
parenttty: serial: lpuart: add earlycon support for imx7ulp (diff)
downloadlinux-dev-a6d7514b14a6ea2a3868bdcb2fca7b2410738595.tar.xz
linux-dev-a6d7514b14a6ea2a3868bdcb2fca7b2410738595.zip
tty: serial: lpuart: add a more accurate baud rate calculation method
On new LPUART versions, the oversampling ratio for the receiver can be changed from 4x (00011) to 32x (11111) which could help us get a more accurate baud rate divider. The idea is to use the best OSR (over-sampling rate) possible. Note, OSR is typically hard-set to 16 in other LPUART instantiations. Loop to find the best OSR value possible, one that generates minimum baud diff iterate through the rest of the supported values of OSR. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Jiri Slaby <jslaby@suse.com> Cc: Stefan Agner <stefan@agner.ch> Cc: Mingkai Hu <Mingkai.Hu@nxp.com> Cc: Yangbo Lu <yangbo.lu@nxp.com> Acked-by: Fugang Duan <fugang.duan@nxp.com> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/hvc')
0 files changed, 0 insertions, 0 deletions