]> git.dujemihanovic.xyz Git - u-boot.git/commit
serial: a37xx: Use TBG as parent clock
authorPali Rohár <pali@kernel.org>
Tue, 25 May 2021 17:42:40 +0000 (19:42 +0200)
committerStefan Roese <sr@denx.de>
Thu, 8 Jul 2021 14:40:52 +0000 (16:40 +0200)
commit5f41bab86c57bb5f0e1ee335ae402c7559937416
treef73ba83a7c88f2d606d12cc1278e04d88ff9a882
parent3d9c1d5ddac8f040730c228086a083214e992419
serial: a37xx: Use TBG as parent clock

Using TBG clock as parent clock for UART allows us using higher
baudrates than 230400.

Turris MOX with external FT232RL USB-UART works fine up to 3 MBaud
(which is maximum for this USB-UART controller), while EspressoBIN with
integrated pl2303 USB-UART also works fine up to 6 MBaud.

Slower baudrates with TBG as a parent clock can be achieved by
increasing TBG dividers and oversampling divider. When using the slowest
TBG clock, minimal working baudrate is 300.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/serial/serial_mvebu_a3700.c