aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-integrator
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-01-14 07:48:06 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-05-02 04:35:33 -0400
commitf4b8b319bf21bf3576014ce7336763cd3e1684ef (patch)
tree5f3200e3b82dd23fc58633e010f3996246d81607 /arch/arm/mach-integrator
parentc5a0adb51002e51a4254cb7f0ab7190d41d8b930 (diff)
ARM: Realview/Versatile/Integrator: separate out common clock code
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-integrator')
-rw-r--r--arch/arm/mach-integrator/Makefile2
-rw-r--r--arch/arm/mach-integrator/clock.c60
2 files changed, 1 insertions, 61 deletions
diff --git a/arch/arm/mach-integrator/Makefile b/arch/arm/mach-integrator/Makefile
index 6a5ef8d30b1..ebeef966e1f 100644
--- a/arch/arm/mach-integrator/Makefile
+++ b/arch/arm/mach-integrator/Makefile
@@ -4,7 +4,7 @@
4 4
5# Object file lists. 5# Object file lists.
6 6
7obj-y := clock.o core.o lm.o 7obj-y := core.o lm.o
8obj-$(CONFIG_ARCH_INTEGRATOR_AP) += integrator_ap.o 8obj-$(CONFIG_ARCH_INTEGRATOR_AP) += integrator_ap.o
9obj-$(CONFIG_ARCH_INTEGRATOR_CP) += integrator_cp.o 9obj-$(CONFIG_ARCH_INTEGRATOR_CP) += integrator_cp.o
10 10
diff --git a/arch/arm/mach-integrator/clock.c b/arch/arm/mach-integrator/clock.c
deleted file mode 100644
index 52fc294eac7..00000000000
--- a/arch/arm/mach-integrator/clock.c
+++ /dev/null
@@ -1,60 +0,0 @@
1/*
2 * linux/arch/arm/mach-integrator/clock.c
3 *
4 * Copyright (C) 2004 ARM Limited.
5 * Written by Deep Blue Solutions Limited.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11#include <linux/module.h>
12#include <linux/kernel.h>
13#include <linux/errno.h>
14#include <linux/clk.h>
15#include <linux/mutex.h>
16
17#include <asm/hardware/icst.h>
18#include <asm/clkdev.h>
19#include <mach/clkdev.h>
20
21int clk_enable(struct clk *clk)
22{
23 return 0;
24}
25EXPORT_SYMBOL(clk_enable);
26
27void clk_disable(struct clk *clk)
28{
29}
30EXPORT_SYMBOL(clk_disable);
31
32unsigned long clk_get_rate(struct clk *clk)
33{
34 return clk->rate;
35}
36EXPORT_SYMBOL(clk_get_rate);
37
38long clk_round_rate(struct clk *clk, unsigned long rate)
39{
40 struct icst_vco vco;
41 vco = icst_hz_to_vco(clk->params, rate);
42 return icst_hz(clk->params, vco);
43}
44EXPORT_SYMBOL(clk_round_rate);
45
46int clk_set_rate(struct clk *clk, unsigned long rate)
47{
48 int ret = -EIO;
49
50 if (clk->setvco) {
51 struct icst_vco vco;
52
53 vco = icst_hz_to_vco(clk->params, rate);
54 clk->rate = icst_hz(clk->params, vco);
55 clk->setvco(clk, vco);
56 ret = 0;
57 }
58 return ret;
59}
60EXPORT_SYMBOL(clk_set_rate);