]> asedeno.scripts.mit.edu Git - linux.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)
commite9dda4af685ff4c19cd9236e12c1ee0377696843
tree282ba0ef5e7bd86527b4f59245c66ec28fd61bca
parent3b9ea606cda533964985966ad5b30715da7ba097
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