]> pilppa.org Git - linux-2.6-omap-h63xx.git/commit
omap2 clock: add support for inverted enable bits
authorPaul Walmsley <paul@pwsan.com>
Thu, 27 Sep 2007 06:11:22 +0000 (00:11 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 28 Sep 2007 22:55:18 +0000 (15:55 -0700)
commitadb5ea75bc43fbb35241f5ef1b9d19e9a6573418
treec8ff01d40891a0d4c04b03b1fa2fd048a3d180ef
parent926865d2354fbada3c07a66f80b45309188cceb5
omap2 clock: add support for inverted enable bits

On 3430ES2 (and presumably beyond), some clock tree branches from
DPLL3 & 4 can be powered down by setting 'PWRDN' bits in CM_CLKEN_PLL.
It appears that an easy way to power these branches down in our
existing clock framework is to use the PWRDN bits as clock enable bits
for the specific DPLL branches they affect.  The problem with this is
that the meaning of a set PWRDN bit is 'disable,' not 'enable.'  So,
introduce a new clock flag, INVERT_ENABLE, that clears the bit on
'clock enable,' and sets the bit on 'clock disable.'  This flag is used
on all PWRDN clock branches in the 3430 clock framework.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/clock.c
include/asm-arm/arch-omap/clock.h