clk: rockchip: rk3588: fix mask define for aclk_vop_root
authorHeiko Stuebner <heiko@sntech.de>
Wed, 20 Nov 2024 10:19:11 +0000 (11:19 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 11 Jan 2025 00:56:22 +0000 (18:56 -0600)
The mask for aclk_vop_root is 3-bit wide, not 2-bit wide according
to the TRM, so set the mask accordingly.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/include/asm/arch-rockchip/cru_rk3588.h

index dad4848..afce8a4 100644 (file)
@@ -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,