OSDN Git Service

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)
commitf5290d8e4f0caa81a491448a27dd70e726095d07
treefc0b28501941b6f06cc3a0cf66cf83a000520523
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
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