]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: rockchip: rk3399: Add SCLK_USB3OTGx_REF support
authorJonas Karlman <jonas@kwiboo.se>
Wed, 1 May 2024 16:22:21 +0000 (16:22 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 7 May 2024 07:56:09 +0000 (15:56 +0800)
commitadd8cef67be9eacd7a0693131309fd1b344bf53c
treefd69fbbe589c047c2ba0d3dbb0862c3e90c55657
parente801d05bea6d99b2731f3c96edc754b36f75bcdc
clk: rockchip: rk3399: Add SCLK_USB3OTGx_REF support

The SCLK_USB3OTGx_REF clocks is used as reference clock for USB3 block.

Add simple support to get rate of SCLK_USB3OTGx_REF clocks to fix
reference clock period configuration.

Also replace use of 24000000 with the OSC_HZ constant.

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