diff options
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/clock.c | 10 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/clock.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c index 6cc13e7fd897..5261a0923691 100644 --- a/arch/arm/plat-omap/clock.c +++ b/arch/arm/plat-omap/clock.c | |||
@@ -357,6 +357,16 @@ const struct clkops clkops_null = { | |||
357 | .disable = clkll_disable_null, | 357 | .disable = clkll_disable_null, |
358 | }; | 358 | }; |
359 | 359 | ||
360 | /* | ||
361 | * Dummy clock | ||
362 | * | ||
363 | * Used for clock aliases that are needed on some OMAPs, but not others | ||
364 | */ | ||
365 | struct clk dummy_ck = { | ||
366 | .name = "dummy", | ||
367 | .ops = &clkops_null, | ||
368 | }; | ||
369 | |||
360 | #ifdef CONFIG_CPU_FREQ | 370 | #ifdef CONFIG_CPU_FREQ |
361 | void clk_init_cpufreq_table(struct cpufreq_frequency_table **table) | 371 | void clk_init_cpufreq_table(struct cpufreq_frequency_table **table) |
362 | { | 372 | { |
diff --git a/arch/arm/plat-omap/include/plat/clock.h b/arch/arm/plat-omap/include/plat/clock.h index 9b4701f14984..34f7fa9ad4c0 100644 --- a/arch/arm/plat-omap/include/plat/clock.h +++ b/arch/arm/plat-omap/include/plat/clock.h | |||
@@ -186,6 +186,8 @@ extern struct clk *omap_clk_get_by_name(const char *name); | |||
186 | 186 | ||
187 | extern const struct clkops clkops_null; | 187 | extern const struct clkops clkops_null; |
188 | 188 | ||
189 | extern struct clk dummy_ck; | ||
190 | |||
189 | /* Clock flags */ | 191 | /* Clock flags */ |
190 | #define ENABLE_REG_32BIT (1 << 0) /* Use 32-bit access */ | 192 | #define ENABLE_REG_32BIT (1 << 0) /* Use 32-bit access */ |
191 | #define CLOCK_IDLE_CONTROL (1 << 1) | 193 | #define CLOCK_IDLE_CONTROL (1 << 1) |