]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: amlogic: add composite clock helpers
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 25 Aug 2025 14:26:35 +0000 (16:26 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Thu, 4 Sep 2025 16:27:12 +0000 (18:27 +0200)
commit955e18baeb933096f417ac01d6781380d7c8a374
tree9672230252666de36244f1fadb240adfd638f0bc
parentb7358d14f176a5508d6330dc967b4ce3a5b08684
clk: amlogic: add composite clock helpers

Device composite clocks tend to reproduce the usual sel/div/gate
arrangement.

Add macros to help define simple composite clocks in the system.

The idea is _not_ to replace all instances of mux, div or gate with those
macros. It is rather to use it for recurring and/or simple composite
clocks, reducing controller verbosity where it makes sense. This should
help reviews focus on the tricky parts.

Link: https://lore.kernel.org/r/20250825-meson-clk-cleanup-24-v2-10-0f402f01e117@baylibre.com
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/meson-clkc-utils.h