aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/clock-sh7367.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2010-05-12 10:21:24 -0400
committerPaul Mundt <lethal@linux-sh.org>2010-05-19 23:05:45 -0400
commite47bb515c57853c1f41474dae199cb033e747f66 (patch)
treeb5756cf85f2db87bd31b7045aa747c6708658f60 /arch/arm/mach-shmobile/clock-sh7367.c
parent645e522ee05f467b86f6fd2f3554fd6592418bae (diff)
ARM: mach-shmobile: Use shared clock framework
Teach SH-Mobile ARM how to make use of the shared SH clock framework. This commit is one atomic switch that dumps the local hackery and instead links in the shared clock framework code in drivers/sh. A few local functions are kept in clock.c. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile/clock-sh7367.c')
-rw-r--r--arch/arm/mach-shmobile/clock-sh7367.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/arch/arm/mach-shmobile/clock-sh7367.c b/arch/arm/mach-shmobile/clock-sh7367.c
index bb940c6e4e6c..f3ede5284ce3 100644
--- a/arch/arm/mach-shmobile/clock-sh7367.c
+++ b/arch/arm/mach-shmobile/clock-sh7367.c
@@ -21,43 +21,9 @@
21#include <linux/kernel.h> 21#include <linux/kernel.h>
22#include <linux/list.h> 22#include <linux/list.h>
23#include <linux/clk.h> 23#include <linux/clk.h>
24 24#include <linux/sh_clk.h>
25struct clk {
26 const char *name;
27 unsigned long rate;
28};
29
30#include <asm/clkdev.h> 25#include <asm/clkdev.h>
31 26
32int __clk_get(struct clk *clk)
33{
34 return 1;
35}
36EXPORT_SYMBOL(__clk_get);
37
38void __clk_put(struct clk *clk)
39{
40}
41EXPORT_SYMBOL(__clk_put);
42
43
44int clk_enable(struct clk *clk)
45{
46 return 0;
47}
48EXPORT_SYMBOL(clk_enable);
49
50void clk_disable(struct clk *clk)
51{
52}
53EXPORT_SYMBOL(clk_disable);
54
55unsigned long clk_get_rate(struct clk *clk)
56{
57 return clk ? clk->rate : 0;
58}
59EXPORT_SYMBOL(clk_get_rate);
60
61/* a static peripheral clock for now - enough to get sh-sci working */ 27/* a static peripheral clock for now - enough to get sh-sci working */
62static struct clk peripheral_clk = { 28static struct clk peripheral_clk = {
63 .name = "peripheral_clk", 29 .name = "peripheral_clk",