diff options
author | Paul Walmsley <paul@pwsan.com> | 2011-02-25 17:39:30 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2011-03-07 22:04:03 -0500 |
commit | ec538e30f7eded2c4af8d9184619a3de65bc378e (patch) | |
tree | 5a5f7589c31e9c965e250f67b8b2339d9ae5bfe6 /arch/arm/mach-omap2/clock34xx.c | |
parent | a1d5562315a1e911c8448b7fac33c966f9cb6294 (diff) |
OMAP3: clock: use autoidle clkops for all autoidle-controllable interface clocks
Mark each interface clock with a corresponding CM_AUTOIDLE bit with
a clkops that has the allow_idle/deny_idle function pointers populated.
This allows the OMAP clock framework to enable and disable autoidle for
these clocks.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Tested-by: Rajendra Nayak <rnayak@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/clock34xx.c')
-rw-r--r-- | arch/arm/mach-omap2/clock34xx.c | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c index 287abc480924..1fc96b9ee330 100644 --- a/arch/arm/mach-omap2/clock34xx.c +++ b/arch/arm/mach-omap2/clock34xx.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * OMAP3-specific clock framework functions | 2 | * OMAP3-specific clock framework functions |
3 | * | 3 | * |
4 | * Copyright (C) 2007-2008 Texas Instruments, Inc. | 4 | * Copyright (C) 2007-2008 Texas Instruments, Inc. |
5 | * Copyright (C) 2007-2010 Nokia Corporation | 5 | * Copyright (C) 2007-2011 Nokia Corporation |
6 | * | 6 | * |
7 | * Paul Walmsley | 7 | * Paul Walmsley |
8 | * Jouni Högander | 8 | * Jouni Högander |
@@ -59,6 +59,15 @@ const struct clkops clkops_omap3430es2_ssi_wait = { | |||
59 | .find_companion = omap2_clk_dflt_find_companion, | 59 | .find_companion = omap2_clk_dflt_find_companion, |
60 | }; | 60 | }; |
61 | 61 | ||
62 | const struct clkops clkops_omap3430es2_iclk_ssi_wait = { | ||
63 | .enable = omap2_dflt_clk_enable, | ||
64 | .disable = omap2_dflt_clk_disable, | ||
65 | .find_idlest = omap3430es2_clk_ssi_find_idlest, | ||
66 | .find_companion = omap2_clk_dflt_find_companion, | ||
67 | .allow_idle = omap2_clkt_iclk_allow_idle, | ||
68 | .deny_idle = omap2_clkt_iclk_deny_idle, | ||
69 | }; | ||
70 | |||
62 | /** | 71 | /** |
63 | * omap3430es2_clk_dss_usbhost_find_idlest - CM_IDLEST info for DSS, USBHOST | 72 | * omap3430es2_clk_dss_usbhost_find_idlest - CM_IDLEST info for DSS, USBHOST |
64 | * @clk: struct clk * being enabled | 73 | * @clk: struct clk * being enabled |
@@ -94,6 +103,15 @@ const struct clkops clkops_omap3430es2_dss_usbhost_wait = { | |||
94 | .find_companion = omap2_clk_dflt_find_companion, | 103 | .find_companion = omap2_clk_dflt_find_companion, |
95 | }; | 104 | }; |
96 | 105 | ||
106 | const struct clkops clkops_omap3430es2_iclk_dss_usbhost_wait = { | ||
107 | .enable = omap2_dflt_clk_enable, | ||
108 | .disable = omap2_dflt_clk_disable, | ||
109 | .find_idlest = omap3430es2_clk_dss_usbhost_find_idlest, | ||
110 | .find_companion = omap2_clk_dflt_find_companion, | ||
111 | .allow_idle = omap2_clkt_iclk_allow_idle, | ||
112 | .deny_idle = omap2_clkt_iclk_deny_idle, | ||
113 | }; | ||
114 | |||
97 | /** | 115 | /** |
98 | * omap3430es2_clk_hsotgusb_find_idlest - return CM_IDLEST info for HSOTGUSB | 116 | * omap3430es2_clk_hsotgusb_find_idlest - return CM_IDLEST info for HSOTGUSB |
99 | * @clk: struct clk * being enabled | 117 | * @clk: struct clk * being enabled |
@@ -124,3 +142,12 @@ const struct clkops clkops_omap3430es2_hsotgusb_wait = { | |||
124 | .find_idlest = omap3430es2_clk_hsotgusb_find_idlest, | 142 | .find_idlest = omap3430es2_clk_hsotgusb_find_idlest, |
125 | .find_companion = omap2_clk_dflt_find_companion, | 143 | .find_companion = omap2_clk_dflt_find_companion, |
126 | }; | 144 | }; |
145 | |||
146 | const struct clkops clkops_omap3430es2_iclk_hsotgusb_wait = { | ||
147 | .enable = omap2_dflt_clk_enable, | ||
148 | .disable = omap2_dflt_clk_disable, | ||
149 | .find_idlest = omap3430es2_clk_hsotgusb_find_idlest, | ||
150 | .find_companion = omap2_clk_dflt_find_companion, | ||
151 | .allow_idle = omap2_clkt_iclk_allow_idle, | ||
152 | .deny_idle = omap2_clkt_iclk_deny_idle, | ||
153 | }; | ||