]> Gentwo Git Trees - linux/.git/commit
clk: spacemit: introduce pre-div for ddn clock
authorTroy Mitchell <troy.mitchell@linux.spacemit.com>
Thu, 11 Sep 2025 03:34:04 +0000 (11:34 +0800)
committerStephen Boyd <sboyd@kernel.org>
Sat, 20 Sep 2025 05:54:44 +0000 (22:54 -0700)
commit74246a820c817f195f6191e370c3df98d2df5d91
tree7a4678d7d87765cd91a7e899ee90a68f3368fbd6
parent8be1f299041220512195e40590bb4984f297ae48
clk: spacemit: introduce pre-div for ddn clock

The original DDN operations applied an implicit divide-by-2, which should
not be a default behavior.

This patch removes that assumption, letting each clock define its
actual behavior explicitly.

Reviewed-by: Haylen Chu <heylenay@4d2.org>
Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/spacemit/ccu-k1.c
drivers/clk/spacemit/ccu_ddn.c
drivers/clk/spacemit/ccu_ddn.h