tty: serial: meson: Add a 12MHz internal clock rate to calculate baud rate in order...
authorYu Tu <yu.tu@amlogic.com>
Fri, 22 Apr 2022 11:13:19 +0000 (19:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Apr 2022 14:20:48 +0000 (16:20 +0200)
commit00a7fa836dbc454faf5b7027ad67519af7c6c15b
tree2c0e588a6caa46454494457f2f65a864c6d38e23
parentf938948db9078c0a4f27013c9889239c8db62e37
tty: serial: meson: Add a 12MHz internal clock rate to calculate baud rate in order to meet the baud rate requirements of special BT modules

A /2 divider over XTAL was introduced since G12A, and is preferred
to be used over the still present /3 divider since it provides much
closer frequencies vs the request baudrate. Especially the BT module
uses 3Mhz baud rate. 8Mhz calculations can lead to baud rate bias,
causing some problems.

Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Yu Tu <yu.tu@amlogic.com>
Link: https://lore.kernel.org/r/20220422111320.19234-2-yu.tu@amlogic.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/meson_uart.c