OMAP4: DPLL: Add dpll api to control GATE_CTRL
authorRajendra Nayak <rnayak@ti.com>
Fri, 25 Feb 2011 22:49:01 +0000 (15:49 -0700)
committerPaul Walmsley <paul@pwsan.com>
Fri, 25 Feb 2011 23:10:17 +0000 (16:10 -0700)
commit97f678989afe5dd1584a0877dfd8b0d2e124b73a
tree39f2b45b0e62b8c62a5e0e6277343a0474c04b2a
parentb80b956dc56c6a3cb77b97e2abff48fb7ebc2119
OMAP4: DPLL: Add dpll api to control GATE_CTRL

On OMAP4, the dpll post divider outputs (MX outputs)
along with clockout_x2 output provide a way to allow/deny
hardware level autogating.
Allowing autoidle would mean that the hw would autogate
this clock when there is no dependency for it.
Denying idle would mean that this clock output will be
forced to stay enabled.

Add dpll api's to read/allow/deny idle control
for these dpll mx postdividers.

NOTE: The gatectrl bit set to 0 allows gatectrl,
and the bit set to 1 denies gatectrl.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
[paul@pwsan.com: moved OMAP4-specific DPLL control code to
 mach-omap2/dpll44xx.c; added some documentation for CLOCK_CLKOUTX2]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/Makefile
arch/arm/mach-omap2/clock.h
arch/arm/mach-omap2/dpll44xx.c [new file with mode: 0644]
arch/arm/plat-omap/include/plat/clock.h