From patchwork Wed Feb 16 06:52:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Walmsley X-Patchwork-Id: 566041 X-Patchwork-Delegate: paul@pwsan.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1G6sGtX021604 for ; Wed, 16 Feb 2011 06:54:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754263Ab1BPGyR (ORCPT ); Wed, 16 Feb 2011 01:54:17 -0500 Received: from utopia.booyaka.com ([72.9.107.138]:47521 "EHLO utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752054Ab1BPGyE (ORCPT ); Wed, 16 Feb 2011 01:54:04 -0500 Received: (qmail 11996 invoked by uid 1019); 16 Feb 2011 06:54:03 -0000 MBOX-Line: From nobody Tue Feb 15 23:52:53 2011 Subject: [PATCH 08/11] OMAP2430/3xxx: clock: add modem clock autoidle support To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org From: Paul Walmsley Date: Tue, 15 Feb 2011 23:52:53 -0700 Message-ID: <20110216065251.22089.75492.stgit@twilight.localdomain> In-Reply-To: <20110216065030.22089.61217.stgit@twilight.localdomain> References: <20110216065030.22089.61217.stgit@twilight.localdomain> User-Agent: StGit/0.15 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 16 Feb 2011 06:54:52 +0000 (UTC) diff --git a/arch/arm/mach-omap2/clkt_iclk.c b/arch/arm/mach-omap2/clkt_iclk.c index dd8a6d3..3d43fba 100644 --- a/arch/arm/mach-omap2/clkt_iclk.c +++ b/arch/arm/mach-omap2/clkt_iclk.c @@ -71,3 +71,12 @@ const struct clkops clkops_omap2_iclk_idle_only = { .deny_idle = omap2_clkt_iclk_deny_idle, }; +const struct clkops clkops_omap2_mdmclk_dflt_wait = { + .enable = omap2_dflt_clk_enable, + .disable = omap2_dflt_clk_disable, + .find_companion = omap2_clk_dflt_find_companion, + .find_idlest = omap2_clk_dflt_find_idlest, + .allow_idle = omap2_clkt_iclk_allow_idle, + .deny_idle = omap2_clkt_iclk_deny_idle, +}; + diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h index 5008f14..70f8b07 100644 --- a/arch/arm/mach-omap2/clock.h +++ b/arch/arm/mach-omap2/clock.h @@ -155,6 +155,7 @@ extern void omap2_clk_exit_cpufreq_table(struct cpufreq_frequency_table **table) extern const struct clkops clkops_omap2_iclk_dflt_wait; extern const struct clkops clkops_omap2_iclk_dflt; extern const struct clkops clkops_omap2_iclk_idle_only; +extern const struct clkops clkops_omap2_mdmclk_dflt_wait; extern const struct clkops clkops_omap2xxx_dpll_ops; extern const struct clkops clkops_omap3_noncore_dpll_ops; extern const struct clkops clkops_omap3_core_dpll_ops;