aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/clock.h
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2010-02-23 00:09:26 -0500
committerPaul Walmsley <paul@pwsan.com>2010-02-24 14:29:43 -0500
commit51c19541624f5588bccb9d4fb3ae518c68c8082e (patch)
tree60f7b3df59806eea7ff7bbf691bb69f8791d5cc1 /arch/arm/plat-omap/include/plat/clock.h
parent8c34974ab0ecbbcdabd343f8cd0013cd2d2b0fa8 (diff)
OMAP clock: drop RATE_FIXED clock flag
The RATE_FIXED clock flag is pointless. In the OMAP1 clock code, it simply causes the omap1_clk_round_rate() function to return the current rate of the clock. omap1_clk_round_rate(), however, should never be called for a fixed-rate clock, since none of these clocks have a .round_rate function pointer set in their struct clk records. Similarly, in the OMAP2+ clock code, the RATE_FIXED flag just causes the clock code to emit a warning if the OMAP clock maintainer was foolish enough to add a .round_rate function pointer to a fixed-rate clock. "Doctor, it hurts when I pretend that a fixed-rate clock is rate-changeable." "Then don't pretend that a fixed-rate clock is rate-changeable." It has no functional value. This patch drops the RATE_FIXED clock flag, removing it from all clocks that are so marked. Signed-off-by: Paul Walmsley <paul@pwsan.com> Cc: Richard Woodruff <r-woodruff2@ti.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat/clock.h')
-rw-r--r--arch/arm/plat-omap/include/plat/clock.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/arm/plat-omap/include/plat/clock.h b/arch/arm/plat-omap/include/plat/clock.h
index 91aa2c48cdde..47de911b0a15 100644
--- a/arch/arm/plat-omap/include/plat/clock.h
+++ b/arch/arm/plat-omap/include/plat/clock.h
@@ -186,13 +186,12 @@ extern void clk_exit_cpufreq_table(struct cpufreq_frequency_table **table);
186extern const struct clkops clkops_null; 186extern const struct clkops clkops_null;
187 187
188/* Clock flags */ 188/* Clock flags */
189#define RATE_FIXED (1 << 0) /* Fixed clock rate */ 189#define ENABLE_REG_32BIT (1 << 0) /* Use 32-bit access */
190#define ENABLE_REG_32BIT (1 << 1) /* Use 32-bit access */ 190#define CLOCK_IDLE_CONTROL (1 << 1)
191#define CLOCK_IDLE_CONTROL (1 << 2) 191#define CLOCK_NO_IDLE_PARENT (1 << 2)
192#define CLOCK_NO_IDLE_PARENT (1 << 3) 192#define ENABLE_ON_INIT (1 << 3) /* Enable upon framework init */
193#define ENABLE_ON_INIT (1 << 4) /* Enable upon framework init */ 193#define INVERT_ENABLE (1 << 4) /* 0 enables, 1 disables */
194#define INVERT_ENABLE (1 << 5) /* 0 enables, 1 disables */ 194#define ALWAYS_ENABLED (1 << 5)
195#define ALWAYS_ENABLED (1 << 6)
196 195
197/* Clksel_rate flags */ 196/* Clksel_rate flags */
198#define DEFAULT_RATE (1 << 0) 197#define DEFAULT_RATE (1 << 0)