Skip to contentSkip to conversation

clk: rockchip: rk3588: fix mask define for aclk_vop_root

PATCH In review Heiko Stuebner 3 participants 4 messages Nov 20, 2024 – Nov 21, 2024

Subsystems (2)
lore
Share & tools
lore

Heiko Stuebner

author maintainer
#0 lore raw

PATCH 1/1 clk: rockchip: rk3588: fix mask define for aclk_vop_root

The mask for aclk_vop_root is 3-bit wide, not 2-bit wide according to the TRM, so set the mask accordingly.

---
 arch/arm/include/asm/arch-rockchip/cru_rk3588.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/include/asm/arch-rockchip/cru_rk3588.h +1 -1
index dad484813fa..afce8a44af3 100644
@@ -346,7 +346,7 @@ enum {
 	ACLK_VOP_LOW_ROOT_SEL_100M,
 	ACLK_VOP_LOW_ROOT_SEL_24M,
 	ACLK_VOP_ROOT_SEL_SHIFT			= 5,
-	ACLK_VOP_ROOT_SEL_MASK			= 3 << ACLK_VOP_ROOT_SEL_SHIFT,
+	ACLK_VOP_ROOT_SEL_MASK			= 7 << ACLK_VOP_ROOT_SEL_SHIFT,
 	ACLK_VOP_ROOT_SEL_GPLL			= 0,
 	ACLK_VOP_ROOT_SEL_CPLL,
 	ACLK_VOP_ROOT_SEL_AUPLL,
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw

Hi Heiko,

Quoted 4 lines · Heiko Stuebner

The mask for aclk_vop_root is 3-bit wide, not 2-bit wide according to the TRM, so set the mask accordingly.

Was this a drive-by bug fix or did you actually experience some bug? Basically trying to figure out if we should push for this being merged for 2025.01 or if it's fine if it misses it?

Thanks!
Quentin

author maintainer
#2 lore raw

Am Mittwoch, 20. November 2024, 12:13:32 CET schrieb Quentin Schulz:

Quoted 11 lines · Heiko Stuebner
Quoted 4 lines

The mask for aclk_vop_root is 3-bit wide, not 2-bit wide according to the TRM, so set the mask accordingly.

Was this a drive-by bug fix or did you actually experience some bug? Basically trying to figure out if we should push for this being merged for 2025.01 or if it's fine if it misses it?

on my side, it was a "drive-by" thing and I actually don't remember anymore, what made me look at that. So I don't experience any bug on my side.

Heiko

Reviewed-by on v1 1/1
#3 lore raw
In reply to Heiko Stuebner
Quoted 4 lines · Heiko Stuebner

The mask for aclk_vop_root is 3-bit wide, not 2-bit wide according to the TRM, so set the mask accordingly.

There is a same change/fix to vendor U-Boot at 2022.

Thanks,
- Kever

Quoted 17 lines
---
  arch/arm/include/asm/arch-rockchip/cru_rk3588.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/include/asm/arch-rockchip/cru_rk3588.h +1 -1
index dad484813fa..afce8a44af3 100644
@@ -346,7 +346,7 @@ enum {
  	ACLK_VOP_LOW_ROOT_SEL_100M,
  	ACLK_VOP_LOW_ROOT_SEL_24M,
  	ACLK_VOP_ROOT_SEL_SHIFT			= 5,
-	ACLK_VOP_ROOT_SEL_MASK			= 3 << ACLK_VOP_ROOT_SEL_SHIFT,
+	ACLK_VOP_ROOT_SEL_MASK			= 7 << ACLK_VOP_ROOT_SEL_SHIFT,
  	ACLK_VOP_ROOT_SEL_GPLL			= 0,
  	ACLK_VOP_ROOT_SEL_CPLL,
  	ACLK_VOP_ROOT_SEL_AUPLL,