summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/clock.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2009-01-23 22:34:09 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-02-08 17:50:15 +0000
commitf1c2543738d18e4398e3d6e27abff6676667975a (patch)
tree3ba3729cd352d1aa9ce16aff48774dc907ec96cb /arch/arm/mach-omap1/clock.c
parent2b811bb56a008f0f669a1bd82e4d077e75aa059a (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/mach-omap1/clock.c')
-rw-r--r--arch/arm/mach-omap1/clock.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c
index 829b9b845b8..88c716331ee 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;
#include "clock.h"
+static int clk_omap1_dummy_enable(struct clk *clk)
+{
+ return 0;
+}
+
+static void clk_omap1_dummy_disable(struct clk *clk)
+{
+}
+
+static const struct clkops clkops_dummy = {
+ .enable = clk_omap1_dummy_enable,
+ .disable = clk_omap1_dummy_disable,
+};
+
+static struct clk dummy_ck = {
+ .name = "dummy",
+ .ops = &clkops_dummy,
+ .flags = RATE_FIXED,
+};
+
struct omap_clk {
u32 cpu;
struct clk_lookup lk;