]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: sunxi-ng: sun55i-a523-ccu: Add missing NPU module clock
authorChen-Yu Tsai <wens@csie.org>
Thu, 11 Sep 2025 17:47:06 +0000 (01:47 +0800)
committerChen-Yu Tsai <wens@csie.org>
Sat, 13 Sep 2025 05:50:52 +0000 (13:50 +0800)
commit828dea389683d8e1df687fbd4521d391df369437
treec5953e120ee1f8f38e88f3aaca46706ecaec86c5
parent391aa264ce580e9814ff827c5bebacf2a539b0ab
clk: sunxi-ng: sun55i-a523-ccu: Add missing NPU module clock

The main clock controller on the A523/T527 has the NPU's module clock.
It was missing from the original submission, likely because that was
based on the A523 user manual; the A523 is marketed without the NPU.

Also, merge the private header back into the driver code itself. The
header only contains a macro containing the total number of clocks.
This has to be updated every time a missing clock gets added. Having
it in a separate file doesn't help the process. Instead just drop the
macro, and thus the header no longer has any reason to exist.

Also move the .num value to after the list of clks to make it obvious
that it should be updated when new clks are added.

Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://patch.msgid.link/20250911174710.3149589-4-wens@kernel.org
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu-sun55i-a523.c
drivers/clk/sunxi-ng/ccu-sun55i-a523.h [deleted file]