aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/include/plat/pd.h
blob: ccbbc910b056afda0f0d0fd21234d0a64dd3620c (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
/* linux/arch/arm/plat-samsung/include/plat/pd.h
 *
 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
 *		http://www.samsung.com
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
*/

#ifndef __ASM_PLAT_SAMSUNG_PD_H
#define __ASM_PLAT_SAMSUNG_PD_H __FILE__

struct samsung_pd_info {
	int (*init)(struct device *dev);
	int (*enable)(struct device *dev);
	int (*disable)(struct device *dev);
	void __iomem *base;
	void *data;
};

enum exynos_pd_block {
	PD_MFC,
	PD_G3D,
	PD_LCD0,
	PD_LCD1,
	PD_TV,
	PD_CAM,
	PD_GPS,
	PD_GPS_ALIVE,
	PD_ISP,
	PD_GSCL,
	PD_DISP1,
};

struct exynos_pd_data {
	void __iomem *clk_base;
	void __iomem *clksrc_base;
	void __iomem *read_base;
	unsigned long read_phy_addr;
};

int exynos_pd_init(struct device *dev);
int exynos_pd_enable(struct device *dev);
int exynos_pd_disable(struct device *dev);
#endif /* __ASM_PLAT_SAMSUNG_PD_H */