soc: xilinx: vcu: add helpers for configuring PLL
authorMichael Tretter <m.tretter@pengutronix.de>
Thu, 21 Jan 2021 07:16:49 +0000 (08:16 +0100)
committerStephen Boyd <sboyd@kernel.org>
Tue, 9 Feb 2021 02:31:24 +0000 (18:31 -0800)
commit354dcf7b02a3755b662b148afb7d7ecf1fbbdf71
tree15fd42557a6587e1eb9e87521d3c46ef7da9a48e
parenta3ab984bb8b007603d260151443fd4d78ee24f5a
soc: xilinx: vcu: add helpers for configuring PLL

The xvcu_set_vcu_pll_info function sets the rate of the PLL and enables
it, which makes it difficult to cleanly convert the driver to the common
clock framework.

Split the function and add separate functions for setting the rate,
enabling the clock and disabling the clock.

Also move the enable of the reference clock from probe to the helper
that enables the PLL.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/20210121071659.1226489-6-m.tretter@pengutronix.de
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/soc/xilinx/xlnx_vcu.c