]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: sunxi-ng: div: support power-of-two dividers
authorChen-Yu Tsai <wens@csie.org>
Thu, 11 Sep 2025 17:47:07 +0000 (01:47 +0800)
committerChen-Yu Tsai <wens@csie.org>
Sat, 13 Sep 2025 05:50:52 +0000 (13:50 +0800)
commit44293edd013e5ed48060e6a8848c215fd3bf8ce3
treec4c322495eada5f2e7cee25e54d9131ea7f907d2
parent828dea389683d8e1df687fbd4521d391df369437
clk: sunxi-ng: div: support power-of-two dividers

Some clocks (for timers) on the A523 are mux-divider-gate types
with the divider being values of power-of-two.

Add a macro for these types of clocks so that we can use the divider
types instead of the M-P types without an M divider.

Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20250911174710.3149589-5-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu_div.h