]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: Kirkwood: Replace clock gating
authorAndrew Lunn <andrew@lunn.ch>
Wed, 11 Apr 2012 19:07:45 +0000 (21:07 +0200)
committerMike Turquette <mturquette@linaro.org>
Tue, 8 May 2012 23:34:04 +0000 (16:34 -0700)
commit0eca0896a0e8d1de7b55bdbfb95033d34636b568
tree88e6367c63a01ea8fe2c6480eea6d9d0782fa502
parent6fed9502e6a1baee31111d1553a3099f031f7f58
ARM: Kirkwood: Replace clock gating

Add a varient of the basic clk-gate code. This variant calls a
function before gating the clock off. This function is used to disable
the SATA or PCIe PHY.

Now that all the drivers prepare and enable there clk as needed, there
is no need for the common code to keep track of which clocks need
gating on. Let the common clock framework turn off clocks which are
not used.

Buy using the added clk varient, when the clk framework turns off SATA
or PCIe clocks, we also disabled SATA and PCIe PHYs which were not
needed.

The function kirkwood_pcie_id() can now be called outside of __init
code, so remove this property for it, and functions it calls.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Jamie Lentin <jm@lentin.co.uk>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
arch/arm/mach-kirkwood/common.c
arch/arm/mach-kirkwood/pcie.c
arch/arm/plat-orion/pcie.c