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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
/* linux/arch/arm/mach-exynos/dev-pd-exynos5.c
*
* Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* EXYNOS5 - Power Domain support
*
* 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.
*/
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <mach/regs-pmu5.h>
#include <mach/regs-clock.h>
#include <plat/pd.h>
struct platform_device exynos5_device_pd[] = {
[PD_MFC] = {
.name = "samsung-pd",
.id = PD_MFC,
.dev = {
.platform_data = &(struct samsung_pd_info) {
.init = exynos_pd_init,
.enable = exynos_pd_enable,
.disable = exynos_pd_disable,
.base = EXYNOS5_MFC_CONFIGURATION,
.data = &(struct exynos_pd_data) {
.clk_base = EXYNOS5_CLKGATE_IP_MFC,
.clksrc_base = EXYNOS5_CLKSRC_TOP3,
},
},
},
},
[PD_G3D] = {
.name = "samsung-pd",
.id = PD_G3D,
.dev = {
.platform_data = &(struct samsung_pd_info) {
.init = exynos_pd_init,
.enable = exynos_pd_enable,
.disable = exynos_pd_disable,
.base = EXYNOS5_G3D_CONFIGURATION,
.data = &(struct exynos_pd_data) {
.clk_base = EXYNOS5_CLKGATE_IP_G3D,
.clksrc_base = EXYNOS5_CLKSRC_TOP3,
},
},
},
},
[PD_GPS] = {
.name = "samsung-pd",
.id = PD_GPS,
.dev = {
.platform_data = &(struct samsung_pd_info) {
.init = exynos_pd_init,
.enable = exynos_pd_enable,
.disable = exynos_pd_disable,
.base = EXYNOS5_GPS_CONFIGURATION,
.data = &(struct exynos_pd_data) {
.clk_base = EXYNOS5_CLKGATE_IP_GPS,
.clksrc_base = EXYNOS5_CLKSRC_TOP3,
},
},
},
},
[PD_ISP] = {
.name = "samsung-pd",
.id = PD_ISP,
.dev = {
.platform_data = &(struct samsung_pd_info) {
.init = exynos_pd_init,
.enable = exynos_pd_enable,
.disable = exynos_pd_disable,
.base = EXYNOS5_ISP_CONFIGURATION,
.data = &(struct exynos_pd_data) {
.clk_base = NULL,
.clksrc_base = EXYNOS5_CLKSRC_TOP3,
},
},
},
},
[PD_GSCL] = {
.name = "samsung-pd",
.id = PD_GSCL,
.dev = {
.platform_data = &(struct samsung_pd_info) {
.init = exynos_pd_init,
.enable = exynos_pd_enable,
.disable = exynos_pd_disable,
.base = EXYNOS5_GSCL_CONFIGURATION,
.data = &(struct exynos_pd_data) {
.clk_base = EXYNOS5_CLKGATE_IP_GSCL,
.clksrc_base = EXYNOS5_CLKSRC_TOP3,
},
},
},
},
[PD_DISP1] = {
.name = "samsung-pd",
.id = PD_DISP1,
.dev = {
.platform_data = &(struct samsung_pd_info) {
.init = exynos_pd_init,
.enable = exynos_pd_enable,
.disable = exynos_pd_disable,
.base = EXYNOS5_DISP1_CONFIGURATION,
.data = &(struct exynos_pd_data) {
.clk_base = EXYNOS5_CLKGATE_IP_DISP1,
.clksrc_base = EXYNOS5_CLKSRC_TOP3,
},
},
},
},
};
|