clk: sunxi-ng: mux: Allow muxes to have keys
authorSamuel Holland <samuel@sholland.org>
Thu, 3 Feb 2022 02:17:34 +0000 (20:17 -0600)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 23 Mar 2022 18:58:38 +0000 (19:58 +0100)
commit7fc46339c33e60218bbb1f542d55da1678919d11
treec2dd9398e278cab8c07f336ed7e1261c3b42955d
parent43f0269b6b89c1eec4ef83c48035608f4dcdd886
clk: sunxi-ng: mux: Allow muxes to have keys

The muxes in the RTC can only be updated when setting a key field to a
specific value. Add a feature flag to denote muxes with this property.

Since so far the key value is always the same, it does not need to be
provided separately for each mux.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220203021736.13434-5-samuel@sholland.org
drivers/clk/sunxi-ng/ccu_common.h
drivers/clk/sunxi-ng/ccu_mux.c