aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/mediatek/mach/mt6735/mt_clkmgr_common.c
blob: 48918005a9de0ee131de915324dd896d261460ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#if defined(CONFIG_MTK_LEGACY)
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/proc_fs.h>

#include <mach/mt_clkmgr.h>

int enable_clock(enum cg_clk_id id, char *name)
{
	int err;

	err = mt_enable_clock(id, name);

	return err;
}
EXPORT_SYMBOL(enable_clock);


int disable_clock(enum cg_clk_id id, char *name)
{
	int err;

	err = mt_disable_clock(id, name);

	return err;
}
EXPORT_SYMBOL(disable_clock);

#else /* !defined(CONFIG_MTK_LEGACY) */
#include <linux/module.h>

enum cg_clk_id {
	NR_CLKS
};

int enable_clock(enum cg_clk_id id, char *name)
{
	return 0;
}
EXPORT_SYMBOL(enable_clock);


int disable_clock(enum cg_clk_id id, char *name)
{
	return 0;
}
EXPORT_SYMBOL(disable_clock);
#endif /* defined(CONFIG_MTK_LEGACY) */