]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: rockchip: rk3308: Support reading UART rate and clock registers
authorMassimo Pegorer <massimo.pegorer+oss@gmail.com>
Thu, 3 Aug 2023 11:08:12 +0000 (13:08 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 12 Aug 2023 02:37:57 +0000 (10:37 +0800)
commit0cd87aac5c89941e711c392d5062da031445ae59
tree9c4111a78ac507d6152de5e5a5d8ab17f6312989
parente4c6ccc6875638766970d249a6cb5dacce6822fe
clk: rockchip: rk3308: Support reading UART rate and clock registers

Add support to read RK3308 registers used to configure UART clocks, and
thus to get UART rate and baudrate. This fixes clock_get_rate returning
error on serial device probing. Moreover, there is no need anymore to
use 'clock-frequency' property for UART nodes in *-u-boot.dtsi files
for all cases where UART is not inited by U-Boot proper or by SPL o by
TPL code but by a preliminary external boot phase (for Rock PI S, UART
is inited by external TPL).

Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3308-rock-pi-s-u-boot.dtsi
arch/arm/include/asm/arch-rk3308/cru_rk3308.h
drivers/clk/rockchip/clk_rk3308.c