]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: rockchip: rk3399: Improve support for SCLK_PCIEPHY_REF clock
authorJonas Karlman <jonas@kwiboo.se>
Wed, 1 May 2024 16:22:20 +0000 (16:22 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 7 May 2024 07:56:09 +0000 (15:56 +0800)
commite801d05bea6d99b2731f3c96edc754b36f75bcdc
tree92d886a48187cde6f80dd641c74886bd66c353de
parent24463b15831cafb61868e7a1b079892bd1bb33b2
clk: rockchip: rk3399: Improve support for SCLK_PCIEPHY_REF clock

rk3399-nanopi-4.dtsi try to set parent of and set rate to 100 MHz of the
SCLK_PCIEPHY_REF clock.

The existing enable/disable ops for SCLK_PCIEPHY_REF currently force
use of 24 MHz parent and rate.

Add improved support for setting parent and rate of the pciephy refclk
to driver to better support assign-clock props for pciephy refclk in DT.

This limited implementation only support setting 24 or 100 MHz rate,
and expect npll and clk_pciephy_ref100m divider to use default values.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/clk/rockchip/clk_rk3399.c