Merge tag 'v3.10.55' into update
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / mach-mt8127 / clock.c
1 /*
2 * linux/arch/arm/mach-versatile/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/device.h>
14 #include <linux/list.h>
15 #include <linux/errno.h>
16 #include <linux/err.h>
17 #include <linux/string.h>
18 #include <linux/clk.h>
19 #include <linux/mutex.h>
20 //FIX-ME: marked for early porting
21 //#include <asm/clkdev.h>
22 #include <asm/hardware/icst.h>
23
24 #include "mach/clock.h"
25
26 int clk_enable(struct clk *clk)
27 {
28 return 0;
29 }
30 EXPORT_SYMBOL(clk_enable);
31
32 void clk_disable(struct clk *clk)
33 {
34 }
35 EXPORT_SYMBOL(clk_disable);
36
37 unsigned long clk_get_rate(struct clk *clk)
38 {
39 return 24000000;
40 }
41 EXPORT_SYMBOL(clk_get_rate);
42
43 void clk_put(struct clk *clk)
44 {
45 }
46 EXPORT_SYMBOL(clk_put);
47
48 struct clk *clk_get(struct device *dev, const char *id)
49 {
50 return NULL;
51 }
52
53 int clk_set_rate(struct clk *clk, unsigned long rate)
54 {
55 int ret = -EIO;
56
57 return ret;
58 }
59 EXPORT_SYMBOL(clk_set_rate);
60