clk: sunxi-ng: mp: provide wrappers for setting feature flags
authorAndre Przywara <andre.przywara@arm.com>
Fri, 7 Mar 2025 00:26:16 +0000 (00:26 +0000)
committerChen-Yu Tsai <wens@csie.org>
Wed, 12 Mar 2025 03:58:09 +0000 (11:58 +0800)
commitcdbb9d0d09db4cd09d23fec02d3b458664bc3d38
tree7644e7f5d2bc084d9a6332835921a805b0f8a833
parent45717804b75eda8a76eacc04509ca4d68dd2caaf
clk: sunxi-ng: mp: provide wrappers for setting feature flags

So far our sunxi clock instantiation macros set the required clock
features depending on the clock type, but the new "dual divider MP
clock" requires us to pass that piece of information in by the user.

Add new wrapper macros that allow to specify a "features" field, to
allow marking those dual-divider clocks accordingly. Also add two
convenience macros that deal with the most common cases.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20250307002628.10684-3-andre.przywara@arm.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu_mp.h