]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e93cc6848c0d31ceb859965d6164bb6f4222ad0
tree2c0e588a6caa46454494457f2f65a864c6d38e23
parent47cf05d76cebbe18bf9256043cb1fe61531c4fed
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