diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2009-01-23 17:34:09 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-08 12:50:15 -0500 |
commit | f1c2543738d18e4398e3d6e27abff6676667975a (patch) | |
tree | 3ba3729cd352d1aa9ce16aff48774dc907ec96cb /arch/arm | |
parent | 2b811bb56a008f0f669a1bd82e4d077e75aa059a (diff) |
[ARM] omap: provide a dummy clock node
By providing a dummy clock node, we can eliminate the SoC conditional
clock handing in the OMAP drivers, moving this knowledge out of the
driver and into the machine clock support code.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap1/clock.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c index 829b9b845b85..88c716331ee5 100644 --- a/arch/arm/mach-omap1/clock.c +++ b/arch/arm/mach-omap1/clock.c | |||
@@ -33,6 +33,26 @@ static const struct clkops clkops_dspck; | |||
33 | 33 | ||
34 | #include "clock.h" | 34 | #include "clock.h" |
35 | 35 | ||
36 | static int clk_omap1_dummy_enable(struct clk *clk) | ||
37 | { | ||
38 | return 0; | ||
39 | } | ||
40 | |||
41 | static void clk_omap1_dummy_disable(struct clk *clk) | ||
42 | { | ||
43 | } | ||
44 | |||
45 | static const struct clkops clkops_dummy = { | ||
46 | .enable = clk_omap1_dummy_enable, | ||
47 | .disable = clk_omap1_dummy_disable, | ||
48 | }; | ||
49 | |||
50 | static struct clk dummy_ck = { | ||
51 | .name = "dummy", | ||
52 | .ops = &clkops_dummy, | ||
53 | .flags = RATE_FIXED, | ||
54 | }; | ||
55 | |||
36 | struct omap_clk { | 56 | struct omap_clk { |
37 | u32 cpu; | 57 | u32 cpu; |
38 | struct clk_lookup lk; | 58 | struct clk_lookup lk; |