8250: microchip: Add 4 Mbps support in PCI1XXXX UART
authorRengarajan S <rengarajan.s@microchip.com>
Thu, 25 Jan 2024 10:06:19 +0000 (15:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jan 2024 03:05:54 +0000 (19:05 -0800)
commit1ed67ecd13490daaac0b56891bbe1c1666c8cee3
tree81ad2f2323636457bf1bc6527396bb348c9d3db2
parent90d051b63519b0e653432168ecee8a4c0abc24dd
8250: microchip: Add 4 Mbps support in PCI1XXXX UART

The current clock input is set to 62.5 MHz for supporting fractional
divider, which enables generation of an acceptable baud rate from any
frequency. With the current clock input the baud rate range is limited
to 3.9 Mbps. Hence, the current range is extended to support 4 Mbps
with Burst mode operation. Divisor calculation for a given baud rate is
updated as the sampling rate is reduced from 16 to 8 for 4 Mbps.

Signed-off-by: Rengarajan S <rengarajan.s@microchip.com>
Link: https://lore.kernel.org/r/20240125100619.154873-1-rengarajan.s@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pci1xxxx.c
drivers/tty/serial/8250/8250_port.c