clk: ux500: Rewrite PRCMU clocks to use clk_hw_*
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 14 Apr 2022 22:17:50 +0000 (00:17 +0200)
committerStephen Boyd <sboyd@kernel.org>
Mon, 25 Apr 2022 23:17:25 +0000 (16:17 -0700)
commita8173c5953b1a9de279ec50dab6756234f85e93f
tree29848d3d045381ba68b858b4e740ba726f779d87
parent00d08cd0bacb1cff0dca905859df68acb3f99107
clk: ux500: Rewrite PRCMU clocks to use clk_hw_*

This rewrites all the u8500 PRCMU clocks and helper functions to
handle clocks using struct clk_hw rather than struct clk, as is
normal for modern clock drivers.

Use clk_hw_register(), of_clk_add_hw_provider() and stack all the
clocks into a compile-time dynamic array of
struct clk_hw_onecell_data.

Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220414221751.323525-5-linus.walleij@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ux500/clk-prcmu.c
drivers/clk/ux500/clk.h
drivers/clk/ux500/u8500_of_clk.c