u-boot/drivers/clk/rockchip
Eugen Hristev 716ed2a8c0 clk: rockchip: rk3588: add hardcoded assigned clocks values
The CRU is being probed with a default set of assigned clocks, which
are not implemented in the driver at all.
Hence, when clk_set_defaults is called, it fails with ENOENT.
This would not be a problem, as the CRU still handles all the required
clocks, and the assigned clocks are default configs which are preprogrammed
or not required for Uboot operations.
However, the rockchip reset driver is being bound by the same DT node
as CRU, as the reset driver has no DT node.
But, when probing the reset node, it will call again the clk_set_defaults
for the CRU node, and failing because of missing those specific clocks
in the rk3588 clock driver.
To avoid this, simply implement a basic set/get that will just return
success and the default corresponding rate for the required assigned clocks.
As those clocks were not supported in Uboot, not required for Uboot
operations, there is no need to do any different kind of initialization.

Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2023-05-09 22:50:01 +08:00
..
clk_pll.c clk: rockchip: pll: Add pll_rk3588 type for rk3588 2023-02-28 18:07:27 +08:00
clk_px30.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk322x.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3036.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3066.c rockchip: rk3066: add clock driver for rk3066 soc 2022-04-18 11:25:13 +08:00
clk_rk3128.c rockchip: rk3128-cru: sync the clock dt-binding header from Linux 2022-12-19 10:56:12 +08:00
clk_rk3188.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3288.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3308.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3328.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3368.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3399.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3568.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rk3588.c clk: rockchip: rk3588: add hardcoded assigned clocks values 2023-05-09 22:50:01 +08:00
clk_rv1108.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
clk_rv1126.c clk: rockchip: correct trivial typo in debug message 2023-05-09 18:28:44 +08:00
Makefile clk: rockchip: Add rk3588 clk support 2023-02-28 18:07:27 +08:00