drivers: serial: serial_omap: Fix TI OMAP UART U-Boot driver to support higher baudrates
authorGokul Praveen <g-praveen@ti.com>
Tue, 26 Nov 2024 10:51:31 +0000 (16:21 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 14 Dec 2024 15:32:59 +0000 (09:32 -0600)
commit50cc0c16b7cc3a3a6d8bca646678e14aaa7cc794
tree1bd216a5d7ecf31ef35f8b49988bb500c122ba03
parenta9c61ac04fdef8de7842456ff597db375f8b48d8
drivers: serial: serial_omap: Fix TI OMAP UART U-Boot driver to support higher baudrates

Move to OMAP specific implementation of certain ops functions as the UART
prints on the serial console fail for baudrates greater than 460800.

The MDR1 register is responsible for determining the speed mode at which
the UART should operate for OMAP specific devices. The baud divisor is used
to set the UART_DLL register which is used for generation of the baud
clock in the baud rate generator. The implementation logic is similar to
how it is implemented in omap_8250_get_divisor function of 8250_omap UART
linux driver.

Signed-off-by: Gokul Praveen <g-praveen@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/serial/serial_omap.c