]> Gentwo Git Trees - linux/.git/commit
clk: sunxi-ng: mp: introduce dual-divider clock
authorAndre Przywara <andre.przywara@arm.com>
Fri, 7 Mar 2025 00:26:15 +0000 (00:26 +0000)
committerChen-Yu Tsai <wens@csie.org>
Wed, 12 Mar 2025 03:58:09 +0000 (11:58 +0800)
commit45717804b75eda8a76eacc04509ca4d68dd2caaf
treed23380694797712aed5cda5b766586f3f2be34c2
parenteb963d7948ce6571939c6875424b557b25f16610
clk: sunxi-ng: mp: introduce dual-divider clock

The Allwinner A523 SoC introduces some new MP-style mod clock, where the
second "P" divider is an actual numerical divider value, and not the
numbers of bits to shift (1..32 instead of 1,2,4,8).
The rest of the clock is the same as the existing MP clock, so enhance the
existing code to accommodate for this.

Introduce the new CCU feature bit CCU_FEATURE_DUAL_DIV to mark an MP
clock as having two dividers, and change the dividing and encoding code
to differentiate the two cases.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Link: https://patch.msgid.link/20250307002628.10684-2-andre.przywara@arm.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu_common.h
drivers/clk/sunxi-ng/ccu_mp.c