clk: iproc: Add PWRCTRL support
authorJon Mason <jonmason@broadcom.com>
Thu, 15 Oct 2015 19:48:26 +0000 (15:48 -0400)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 21 Oct 2015 23:53:15 +0000 (16:53 -0700)
commit01b6722fdf65a91d588338e5a1964d57fa2dd590
tree604e56f8653928722fae07605c2552d72e3fea57
parent2dfc8a27ecfb3a54cc60376e0e7c4872934008f1
clk: iproc: Add PWRCTRL support

Some iProc SoC clocks use a different way to control clock power, via
the PWRDWN bit in the PLL control register.  Since the PLL control
register is used to access the PWRDWN bit, there is no need for the
pwr_base when this is being used.  A new flag, IPROC_CLK_EMBED_PWRCTRL,
has been added to identify this usage.  We can use the AON interface to
write the values to enable/disable PWRDOWN.

Signed-off-by: Jon Mason <jonmason@broadcom.com>
[sboyd@codeaurora.org: Remove useless parentheses]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/bcm/clk-iproc-pll.c
drivers/clk/bcm/clk-iproc.h