]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: rockchip: rk3568: Fix mask for clk_cpll_div_25m_div
authorJonas Karlman <jonas@kwiboo.se>
Fri, 4 Aug 2023 09:33:59 +0000 (09:33 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 12 Aug 2023 02:35:35 +0000 (10:35 +0800)
commit6da8400d7ae986ef2a8e0ddb4f39907c6c0666f1
tree9d3c048a08ce7d74434eedc808996281387cc564
parentacb9812034850ae0d737a767b392b9cd097f3606
clk: rockchip: rk3568: Fix mask for clk_cpll_div_25m_div

The field for clk_cpll_div_25m_div in CRU_CLKSEL_CON81 is 6 bits wide,
not 5 bits wide as currently defined in CPLL_25M_DIV_MASK.

Fix this and the assert so that CPLL_25M can be assigned a 25 MHz rate.

Fixes: 4a262feba3a5 ("rockchip: rk3568: add clock driver")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/include/asm/arch-rockchip/cru_rk3568.h
drivers/clk/rockchip/clk_rk3568.c