clk: imx7d: only enable minimum required clocks
authorDong Aisheng <aisheng.dong@nxp.com>
Thu, 30 Jun 2016 09:31:18 +0000 (17:31 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Sat, 2 Jul 2016 00:43:21 +0000 (17:43 -0700)
commite8e628fb3f47ec7a45f9a026561e88ec8884776c
tree1cf5dbc27d2d788992400a839d812ee69425662d
parentcbeac74a5883e4d3caa1e3ad2efdd39a9c52ee73
clk: imx7d: only enable minimum required clocks

Formerly clk core does not support imx7d clock type well that all
its clock operations requires the parent clock on.
Therefore we enabled all clocks by default in clock driver
initialization for other module clocks operate well.

After patch 'clk: imx7d: using api with flag CLK_OPS_PARENT_ENABLE',
clk core can handle such clock type well, so we don't have to enable
them all by default anymore. Instead, we only enable a minimum required
set of clocks.

Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/imx/clk-imx7d.c