diff options
author | Tero Kristo <t-kristo@ti.com> | 2013-06-18 16:27:57 +0300 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-01-17 12:34:59 -0800 |
commit | b1a07b478b63f0a8f971b3a82ce34a67a9324547 (patch) | |
tree | dc5d86884961efff9caaa25c277eac3b0d3c58df /arch/arm | |
parent | f38b0dd63f0d0cca753bf0997eefdfb23dcc9518 (diff) | |
download | linux-b1a07b478b63f0a8f971b3a82ce34a67a9324547.tar.gz linux-b1a07b478b63f0a8f971b3a82ce34a67a9324547.tar.bz2 linux-b1a07b478b63f0a8f971b3a82ce34a67a9324547.zip |
CLK: TI: add autoidle support
TI clk driver now routes some of the basic clocks through own
registration routine to allow autoidle support. This routine just
checks a couple of device node properties and adds autoidle support
if required, and just passes the registration forward to basic clocks.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/clock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index c7c5d31e9082..238be3f1ddce 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c @@ -520,6 +520,9 @@ int omap2_clk_enable_autoidle_all(void) list_for_each_entry(c, &clk_hw_omap_clocks, node) if (c->ops && c->ops->allow_idle) c->ops->allow_idle(c); + + of_ti_clk_allow_autoidle_all(); + return 0; } @@ -539,6 +542,9 @@ int omap2_clk_disable_autoidle_all(void) list_for_each_entry(c, &clk_hw_omap_clocks, node) if (c->ops && c->ops->deny_idle) c->ops->deny_idle(c); + + of_ti_clk_deny_autoidle_all(); + return 0; } |