summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mmp/clock.c
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@marvell.com>2009-09-10 08:01:22 +0200
committerEric Miao <eric.y.miao@gmail.com>2009-12-01 02:02:51 +0100
commit4092855d9634fd0cce879b0f47a7e128f86d869e (patch)
tree13844ff3530c4920096a2b22361ec7753b1b4d70 /arch/arm/mach-mmp/clock.c
parent[ARM] pxa: add missing irq events for pxa168 (diff)
downloadlinux-4092855d9634fd0cce879b0f47a7e128f86d869e.tar.xz
linux-4092855d9634fd0cce879b0f47a7e128f86d869e.zip
[ARM] pxa: add apmu clock support in mmp
Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-mmp/clock.c')
-rw-r--r--arch/arm/mach-mmp/clock.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/clock.c b/arch/arm/mach-mmp/clock.c
index 2d9cc5a7122f..2a46ed5cc2a2 100644
--- a/arch/arm/mach-mmp/clock.c
+++ b/arch/arm/mach-mmp/clock.c
@@ -34,6 +34,21 @@ struct clkops apbc_clk_ops = {
.disable = apbc_clk_disable,
};
+static void apmu_clk_enable(struct clk *clk)
+{
+ __raw_writel(clk->enable_val, clk->clk_rst);
+}
+
+static void apmu_clk_disable(struct clk *clk)
+{
+ __raw_writel(0, clk->clk_rst);
+}
+
+struct clkops apmu_clk_ops = {
+ .enable = apmu_clk_enable,
+ .disable = apmu_clk_disable,
+};
+
static DEFINE_SPINLOCK(clocks_lock);
int clk_enable(struct clk *clk)