]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: spacemit: ccu_mix: add inverted enable gate clock
authorYixun Lan <dlan@gentoo.org>
Fri, 31 Oct 2025 12:40:46 +0000 (20:40 +0800)
committerYixun Lan <dlan@gentoo.org>
Fri, 9 Jan 2026 02:27:53 +0000 (10:27 +0800)
commitace73b7e27633ec770cfb24cd4ff42c24815a9aa
treec615df794e1aa0ca6ee9a2759f5456c02a87bb9a
parentefe897b557e211a09f51d749eae5eca933e8bf56
clk: spacemit: ccu_mix: add inverted enable gate clock

K3 SoC has the clock IP which support to write value 0 for enabling the
clock, while write 1 for disabling it, thus the enable BIT is inverted.
So, introduce a flag to support the inverted gate clock.

Link: https://lore.kernel.org/r/20260108-k3-clk-v5-2-42a11b74ad58@gentoo.org
Signed-off-by: Yixun Lan <dlan@gentoo.org>
drivers/clk/spacemit/ccu_mix.c
drivers/clk/spacemit/ccu_mix.h