]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 5756/1: ep93xx: introduce clk parent
authorHartley Sweeten <hartleys@visionengravers.com>
Thu, 8 Oct 2009 22:44:41 +0000 (23:44 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 10 Oct 2009 11:45:13 +0000 (12:45 +0100)
commit03dee31a325f4973c848bd576a0c6a9aaee9a4ef
tree424dfc1197daa21a6403a373575dfeb5113e215f
parenta32dbcc3acfcbd3a569f61b7eab70b6cb01bdab4
ARM: 5756/1: ep93xx: introduce clk parent

The clock generation system in the ep93xx uses two external oscillator's
and two internal PLLs to derive all the internal clocks.  Many of these
internal clocks can be stopped to save power.

This introduces a "parent" hierarchy for the clocks so that the users
count can be correctly tracked for power management.

The "parent" for the video clock can either be one of the PLL outputs
or the external oscillator.  In order to correctly track the "parent"
for the video clock calc_clk_div() needed to be modified.  It now
returns an error code if the desired rate cannot be generated.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Ryan Mallon <ryan@bluewatersys.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-ep93xx/clock.c