aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/clock.c
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2009-12-08 13:31:44 -0500
committerpaul <paul@twilight.(none)>2009-12-11 19:00:46 -0500
commitd79b126724554122d9598834ef39fb0bb4fc132d (patch)
treef8844ee1cd9698fead9eeea016cdf8abdc62ed01 /arch/arm/plat-omap/clock.c
parent972c542746904b5f418284946728a61b783275ef (diff)
ARM: OMAP4: PM: Add dummy hooks for OMAP4 dpll api's
This patch adds dummy hooks for OMAP4 dpll api's. Removes dummy hooks for clkdev api's and enables CLKDEV for OMAP4. Also comments clockdomain calls from within the clock framework as its not supported yet for OMAP4. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com> Cc: Benoit Cousson <b-cousson@ti.com>
Diffstat (limited to 'arch/arm/plat-omap/clock.c')
-rw-r--r--arch/arm/plat-omap/clock.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c
index b857d117a45a..89cafc937249 100644
--- a/arch/arm/plat-omap/clock.c
+++ b/arch/arm/plat-omap/clock.c
@@ -40,31 +40,10 @@ static struct clk_functions *arch_clock;
40 * clock framework is not up , it is defined here to avoid rework in 40 * clock framework is not up , it is defined here to avoid rework in
41 * every driver. Also dummy prcm reset function is added */ 41 * every driver. Also dummy prcm reset function is added */
42 42
43/* Dummy hooks only for OMAP4.For rest OMAPs, common clkdev is used */
44#if defined(CONFIG_ARCH_OMAP4)
45struct clk *clk_get(struct device *dev, const char *id)
46{
47 return NULL;
48}
49EXPORT_SYMBOL(clk_get);
50
51void clk_put(struct clk *clk)
52{
53}
54EXPORT_SYMBOL(clk_put);
55
56void omap2_clk_prepare_for_reboot(void)
57{
58}
59EXPORT_SYMBOL(omap2_clk_prepare_for_reboot);
60#endif
61int clk_enable(struct clk *clk) 43int clk_enable(struct clk *clk)
62{ 44{
63 unsigned long flags; 45 unsigned long flags;
64 int ret = 0; 46 int ret = 0;
65 if (cpu_is_omap44xx())
66 /* OMAP4 clk framework not supported yet */
67 return 0;
68 47
69 if (clk == NULL || IS_ERR(clk)) 48 if (clk == NULL || IS_ERR(clk))
70 return -EINVAL; 49 return -EINVAL;