soc: xilinx: vcu: add helper to wait for PLL locked
authorMichael Tretter <m.tretter@pengutronix.de>
Thu, 21 Jan 2021 07:16:48 +0000 (08:16 +0100)
committerStephen Boyd <sboyd@kernel.org>
Tue, 9 Feb 2021 02:31:24 +0000 (18:31 -0800)
commita3ab984bb8b007603d260151443fd4d78ee24f5a
tree393c4cef19c40dac9c1cd5fc3d1166db0d5bbfac
parentd387dfc43cba91d010eeab17403e03a525e16b0f
soc: xilinx: vcu: add helper to wait for PLL locked

Extract a helper function to wait until the PLL is locked. Also,
disabling the bypass was buried in the exit path on the wait loop.
Separate the different steps and add a helper function to make the code
more readable.

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-5-m.tretter@pengutronix.de
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/soc/xilinx/xlnx_vcu.c