]> git.dujemihanovic.xyz Git - u-boot.git/commit
serial: mediatek: add special handling for highspeed and linux compat
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 24 Jun 2024 21:03:33 +0000 (23:03 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 8 Jul 2024 17:45:50 +0000 (11:45 -0600)
commit8bae5bf622c764a48d957a5ffc456dd3650dcb6b
tree20d84e64019dc87090b09baadeb04e8e217821c2
parent41d2cab1fcecfda40cbcc4add57761b1050dfa99
serial: mediatek: add special handling for highspeed and linux compat

Upstream linux serial driver use a different logic to setup serial regs.

They have 2 interval:
- < 115200 we use lowspeed regs and 16 * baud
- >= 115200 we use highspeed

We currently use force_highspeed property to force usage of highspeed
regs even with low baud rate.

Add special handling if the upstream compatible is used where we just
apply the same interval with anything >= 115200 in highspeed simulating
force_highspeed.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
drivers/serial/serial_mtk.c