serial: 8250_fintek: Enable high speed mode on Fintek F81866
authorLukas Redlinger <rel+kernel@agilox.net>
Tue, 14 Mar 2017 14:09:14 +0000 (15:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2017 05:17:11 +0000 (14:17 +0900)
commitfab8a02b73eb2a42c589f943c377143f04b2bb73
tree088d20cd500639d2054a32a86fcdcbe38295a593
parent71472fa9c52b1da27663c275d416d8654b905f05
serial: 8250_fintek: Enable high speed mode on Fintek F81866

Fintek F81866 supports baud rates higher than 115200 but needs to raise
it's clock speed from 1.84 to 14.76 MHz.
This is eight times faster, so gives 921600 as resulting baud_base.

F81866 clock register 0xf2:
    Bit 7-2    reserved
    Bit 1-0    00: 1.8432MHz
               01: 18.432MHz
               10: 24MHz
               11: 14.769MHz

Signed-off-by: Lukas Redlinger <rel+kernel@agilox.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_fintek.c