]> git.baikalelectronics.ru Git - kernel.git/commit
clk: asm9260: use parent index to link the reference clock
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 16 Sep 2022 06:17:38 +0000 (09:17 +0300)
committerStephen Boyd <sboyd@kernel.org>
Fri, 30 Sep 2022 00:55:26 +0000 (17:55 -0700)
commit0e1080da30ce160e0349a870304c92d3065085f2
treefc0b28501941b6f06cc3a0cf66cf83a000520523
parent34a3249ab33a1690f58cd6e91a0208887337d3e0
clk: asm9260: use parent index to link the reference clock

Rewrite clk-asm9260 to use parent index to use the reference clock.
During this rework two helpers are added:

- clk_hw_register_mux_table_parent_data() to supplement
  clk_hw_register_mux_table() but using parent_data instead of
  parent_names

- clk_hw_register_fixed_rate_parent_accuracy() to be used instead of
  directly calling __clk_hw_register_fixed_rate(). The later function is
  an internal API, which is better not to be called directly.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20220916061740.87167-2-dmitry.baryshkov@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-asm9260.c
include/linux/clk-provider.h