]> git.baikalelectronics.ru Git - kernel.git/commit
clk: imx: Refactor entire sccg pll clk
authorAbel Vesa <abel.vesa@nxp.com>
Fri, 22 Feb 2019 17:07:32 +0000 (17:07 +0000)
committerStephen Boyd <sboyd@kernel.org>
Tue, 26 Feb 2019 18:09:31 +0000 (10:09 -0800)
commitfdbc3a162e8350ede66f2834de43269ec9721d15
tree282ba0ef5e7bd86527b4f59245c66ec28fd61bca
parentd79149f5b702482a28ce7d4664453a9be82c4532
clk: imx: Refactor entire sccg pll clk

Make the entire combination of plls to be one single clock. The parents used
for bypasses are specified each as an index in the parents list.
The determine_rate does a lookup throughout all the possible combinations
for all the divs and returns the best possible 'setup' which in turn is used
by set_rate later to set up all the divs and bypasses.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Tested-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/clk-imx8mq.c
drivers/clk/imx/clk-sccg-pll.c
drivers/clk/imx/clk.h