1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-22 04:37:21 +01:00
Files
u-boot-megous/drivers
Weijie Gao 0b9f1ae586 serial: mtk: rewrite the setbrg function
Currently the setbrg logic of serial-mtk is messy, and should be rewritten.
Also an option is added to make it possible to use highspeed-3 mode for all
bauds.

The new logic is:
1. If baud clock > 12MHz
   a) If baud <= 115200, highspeed-0 mode will be used (ns16550 compatible)
   b) If baud <= 576000, highspeed-2 mode will be used
   c) any bauds > 576000, highspeed-3 mode will be used
2. If baud clock <= 12MHz
   Forced highspeed-3 mode
   a) If baud <= 115200, calculates the divisor using DIV_ROUND_CLOSEST
   b) any bauds > 115200, the same as 1. c)

Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
2021-03-20 16:24:27 -04:00
..
2021-03-08 10:32:34 +01:00
2021-02-07 19:22:54 +01:00
2021-03-15 12:15:38 -04:00
2021-02-24 16:51:49 -05:00
2021-01-05 16:20:26 -05:00
2021-03-13 13:14:52 -05:00
2021-03-10 11:48:09 +01:00
2021-03-15 12:15:38 -04:00
2021-01-23 11:30:31 +01:00
2020-11-06 10:18:20 +08:00