]> 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)
commit9afc9e71fcfc45badfa4d3f7ae4588985bdaef0b
tree282ba0ef5e7bd86527b4f59245c66ec28fd61bca
parent4f26e899ee32cadb659e2a304f6a5c04ba33fa0a
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