]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: amlogic: get regmap with clk_regmap_init
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 23 Jun 2025 16:37:37 +0000 (18:37 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Wed, 2 Jul 2025 13:38:19 +0000 (15:38 +0200)
commit21ed19d1186314940d4300c39bf54fe0a410ee44
treee0f30006b0d55bf5a27fc19b589f32f1b32a234c
parent328d4a7eb07389157fca1c282ecae63406a2c293
clk: amlogic: get regmap with clk_regmap_init

Add clk_regmap_init() and use it with all clock types which derive from
clk_regmap. This helps initialise clk_regmap clocks without requiring
tables to keep track of the clock using this type.

The way it is done couples clk_regmap with the controllers, which is not
ideal. This is a temporary solution to get rid of the tables. The situation
will eventually be improved.

Link: https://lore.kernel.org/r/20250623-amlogic-clk-drop-clk-regmap-tables-v4-1-ff04918211cc@baylibre.com
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/Kconfig
drivers/clk/meson/clk-cpu-dyndiv.c
drivers/clk/meson/clk-dualdiv.c
drivers/clk/meson/clk-mpll.c
drivers/clk/meson/clk-phase.c
drivers/clk/meson/clk-pll.c
drivers/clk/meson/clk-regmap.c
drivers/clk/meson/clk-regmap.h
drivers/clk/meson/sclk-div.c
drivers/clk/meson/vclk.c
drivers/clk/meson/vid-pll-div.c