blob: f9a5093010f3a3d17ba8906e55d867f51765f26f [file] [log] [blame]
Praveen Chidambaram78499012011-11-01 17:15:17 -06001/* Copyright (c) 2012, Code Aurora Forum. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 */
13
14#include <linux/kernel.h>
15#include <linux/platform_device.h>
Steve Mucklef132c6c2012-06-06 18:30:57 -070016#include <asm/io.h>
Arun Menonaabf2632012-02-24 15:30:47 -080017#include <linux/ion.h>
Praveen Chidambaram78499012011-11-01 17:15:17 -060018#include <mach/msm_iomap.h>
19#include <mach/irqs-8930.h>
20#include <mach/rpm.h>
Praveen Chidambaram5c8adf22012-02-23 18:44:37 -070021#include <mach/msm_dcvs.h>
Arun Menonaabf2632012-02-24 15:30:47 -080022#include <mach/msm_bus.h>
Gagan Maccd5b3272012-02-09 18:13:10 -070023#include <mach/msm_bus_board.h>
Arun Menonaabf2632012-02-24 15:30:47 -080024#include <mach/board.h>
25#include <mach/socinfo.h>
Laura Abbott0577d7b2012-04-17 11:14:30 -070026#include <mach/iommu_domains.h>
Laura Abbott532b2df2012-04-12 10:53:48 -070027#include <mach/msm_rtb.h>
Laura Abbottf3173042012-05-29 15:23:18 -070028#include <mach/msm_cache_dump.h>
Praveen Chidambaram78499012011-11-01 17:15:17 -060029
30#include "devices.h"
31#include "rpm_log.h"
32#include "rpm_stats.h"
Girish Mahadevan898c56d2012-06-05 16:09:19 -060033#include "rpm_rbcpr_stats.h"
Matt Wagantall1f65d9d2012-04-25 14:24:20 -070034#include "footswitch.h"
Praveen Chidambaram78499012011-11-01 17:15:17 -060035
36#ifdef CONFIG_MSM_MPM
Subhash Jadavani909e04f2012-04-12 10:52:50 +053037#include <mach/mpm.h>
Praveen Chidambaram78499012011-11-01 17:15:17 -060038#endif
39
40struct msm_rpm_platform_data msm8930_rpm_data __initdata = {
41 .reg_base_addrs = {
42 [MSM_RPM_PAGE_STATUS] = MSM_RPM_BASE,
43 [MSM_RPM_PAGE_CTRL] = MSM_RPM_BASE + 0x400,
44 [MSM_RPM_PAGE_REQ] = MSM_RPM_BASE + 0x600,
45 [MSM_RPM_PAGE_ACK] = MSM_RPM_BASE + 0xa00,
46 },
47 .irq_ack = RPM_APCC_CPU0_GP_HIGH_IRQ,
Stephen Boydf61255e2012-02-24 14:31:09 -080048 .irq_err = RPM_APCC_CPU0_GP_LOW_IRQ,
Praveen Chidambarame396ce62012-03-30 11:15:57 -060049 .irq_wakeup = RPM_APCC_CPU0_WAKE_UP_IRQ,
Praveen Chidambaram78499012011-11-01 17:15:17 -060050 .ipc_rpm_reg = MSM_APCS_GCC_BASE + 0x008,
51 .ipc_rpm_val = 4,
52 .target_id = {
53 MSM_RPM_MAP(8930, NOTIFICATION_CONFIGURED_0, NOTIFICATION, 4),
54 MSM_RPM_MAP(8930, NOTIFICATION_REGISTERED_0, NOTIFICATION, 4),
55 MSM_RPM_MAP(8930, INVALIDATE_0, INVALIDATE, 8),
Mahesh Sivasubramanianef2a0fa2012-01-24 15:57:01 -070056 MSM_RPM_MAP(8960, TRIGGER_TIMED_TO, TRIGGER_TIMED, 1),
57 MSM_RPM_MAP(8960, TRIGGER_TIMED_SCLK_COUNT, TRIGGER_TIMED, 1),
Praveen Chidambaram78499012011-11-01 17:15:17 -060058 MSM_RPM_MAP(8930, RPM_CTL, RPM_CTL, 1),
59 MSM_RPM_MAP(8930, CXO_CLK, CXO_CLK, 1),
60 MSM_RPM_MAP(8930, PXO_CLK, PXO_CLK, 1),
61 MSM_RPM_MAP(8930, APPS_FABRIC_CLK, APPS_FABRIC_CLK, 1),
62 MSM_RPM_MAP(8930, SYSTEM_FABRIC_CLK, SYSTEM_FABRIC_CLK, 1),
63 MSM_RPM_MAP(8930, MM_FABRIC_CLK, MM_FABRIC_CLK, 1),
64 MSM_RPM_MAP(8930, DAYTONA_FABRIC_CLK, DAYTONA_FABRIC_CLK, 1),
65 MSM_RPM_MAP(8930, SFPB_CLK, SFPB_CLK, 1),
66 MSM_RPM_MAP(8930, CFPB_CLK, CFPB_CLK, 1),
67 MSM_RPM_MAP(8930, MMFPB_CLK, MMFPB_CLK, 1),
68 MSM_RPM_MAP(8930, EBI1_CLK, EBI1_CLK, 1),
69 MSM_RPM_MAP(8930, APPS_FABRIC_CFG_HALT_0,
70 APPS_FABRIC_CFG_HALT, 2),
71 MSM_RPM_MAP(8930, APPS_FABRIC_CFG_CLKMOD_0,
72 APPS_FABRIC_CFG_CLKMOD, 3),
73 MSM_RPM_MAP(8930, APPS_FABRIC_CFG_IOCTL,
74 APPS_FABRIC_CFG_IOCTL, 1),
Mahesh Sivasubramanian2d2c70592012-03-20 17:07:24 -060075 MSM_RPM_MAP(8930, APPS_FABRIC_ARB_0, APPS_FABRIC_ARB, 6),
Praveen Chidambaram78499012011-11-01 17:15:17 -060076 MSM_RPM_MAP(8930, SYS_FABRIC_CFG_HALT_0,
77 SYS_FABRIC_CFG_HALT, 2),
78 MSM_RPM_MAP(8930, SYS_FABRIC_CFG_CLKMOD_0,
79 SYS_FABRIC_CFG_CLKMOD, 3),
80 MSM_RPM_MAP(8930, SYS_FABRIC_CFG_IOCTL,
81 SYS_FABRIC_CFG_IOCTL, 1),
82 MSM_RPM_MAP(8930, SYSTEM_FABRIC_ARB_0,
Mahesh Sivasubramanian2d2c70592012-03-20 17:07:24 -060083 SYSTEM_FABRIC_ARB, 20),
Praveen Chidambaram78499012011-11-01 17:15:17 -060084 MSM_RPM_MAP(8930, MMSS_FABRIC_CFG_HALT_0,
85 MMSS_FABRIC_CFG_HALT, 2),
86 MSM_RPM_MAP(8930, MMSS_FABRIC_CFG_CLKMOD_0,
87 MMSS_FABRIC_CFG_CLKMOD, 3),
88 MSM_RPM_MAP(8930, MMSS_FABRIC_CFG_IOCTL,
89 MMSS_FABRIC_CFG_IOCTL, 1),
Mahesh Sivasubramanian2d2c70592012-03-20 17:07:24 -060090 MSM_RPM_MAP(8930, MM_FABRIC_ARB_0, MM_FABRIC_ARB, 11),
Praveen Chidambaram78499012011-11-01 17:15:17 -060091 MSM_RPM_MAP(8930, PM8038_S1_0, PM8038_S1, 2),
92 MSM_RPM_MAP(8930, PM8038_S2_0, PM8038_S2, 2),
93 MSM_RPM_MAP(8930, PM8038_S3_0, PM8038_S3, 2),
94 MSM_RPM_MAP(8930, PM8038_S4_0, PM8038_S4, 2),
95 MSM_RPM_MAP(8930, PM8038_S5_0, PM8038_S5, 2),
96 MSM_RPM_MAP(8930, PM8038_S6_0, PM8038_S6, 2),
97 MSM_RPM_MAP(8930, PM8038_L1_0, PM8038_L1, 2),
98 MSM_RPM_MAP(8930, PM8038_L2_0, PM8038_L2, 2),
99 MSM_RPM_MAP(8930, PM8038_L3_0, PM8038_L3, 2),
100 MSM_RPM_MAP(8930, PM8038_L4_0, PM8038_L4, 2),
101 MSM_RPM_MAP(8930, PM8038_L5_0, PM8038_L5, 2),
102 MSM_RPM_MAP(8930, PM8038_L6_0, PM8038_L6, 2),
103 MSM_RPM_MAP(8930, PM8038_L7_0, PM8038_L7, 2),
104 MSM_RPM_MAP(8930, PM8038_L8_0, PM8038_L8, 2),
105 MSM_RPM_MAP(8930, PM8038_L9_0, PM8038_L9, 2),
106 MSM_RPM_MAP(8930, PM8038_L10_0, PM8038_L10, 2),
107 MSM_RPM_MAP(8930, PM8038_L11_0, PM8038_L11, 2),
108 MSM_RPM_MAP(8930, PM8038_L12_0, PM8038_L12, 2),
109 MSM_RPM_MAP(8930, PM8038_L13_0, PM8038_L13, 2),
110 MSM_RPM_MAP(8930, PM8038_L14_0, PM8038_L14, 2),
111 MSM_RPM_MAP(8930, PM8038_L15_0, PM8038_L15, 2),
112 MSM_RPM_MAP(8930, PM8038_L16_0, PM8038_L16, 2),
113 MSM_RPM_MAP(8930, PM8038_L17_0, PM8038_L17, 2),
114 MSM_RPM_MAP(8930, PM8038_L18_0, PM8038_L18, 2),
115 MSM_RPM_MAP(8930, PM8038_L19_0, PM8038_L19, 2),
116 MSM_RPM_MAP(8930, PM8038_L20_0, PM8038_L20, 2),
117 MSM_RPM_MAP(8930, PM8038_L21_0, PM8038_L21, 2),
118 MSM_RPM_MAP(8930, PM8038_L22_0, PM8038_L22, 2),
119 MSM_RPM_MAP(8930, PM8038_L23_0, PM8038_L23, 2),
120 MSM_RPM_MAP(8930, PM8038_L24_0, PM8038_L24, 2),
121 MSM_RPM_MAP(8930, PM8038_L25_0, PM8038_L25, 2),
122 MSM_RPM_MAP(8930, PM8038_L26_0, PM8038_L26, 2),
123 MSM_RPM_MAP(8930, PM8038_L27_0, PM8038_L27, 2),
124 MSM_RPM_MAP(8930, PM8038_CLK1_0, PM8038_CLK1, 2),
125 MSM_RPM_MAP(8930, PM8038_CLK2_0, PM8038_CLK2, 2),
126 MSM_RPM_MAP(8930, PM8038_LVS1, PM8038_LVS1, 1),
127 MSM_RPM_MAP(8930, PM8038_LVS2, PM8038_LVS2, 1),
128 MSM_RPM_MAP(8930, NCP_0, NCP, 2),
129 MSM_RPM_MAP(8930, CXO_BUFFERS, CXO_BUFFERS, 1),
130 MSM_RPM_MAP(8930, USB_OTG_SWITCH, USB_OTG_SWITCH, 1),
131 MSM_RPM_MAP(8930, HDMI_SWITCH, HDMI_SWITCH, 1),
132 MSM_RPM_MAP(8930, QDSS_CLK, QDSS_CLK, 1),
Mahesh Sivasubramanian9e52ce42012-02-01 16:00:19 -0700133 MSM_RPM_MAP(8930, VOLTAGE_CORNER, VOLTAGE_CORNER, 1),
Praveen Chidambaram78499012011-11-01 17:15:17 -0600134 },
135 .target_status = {
136 MSM_RPM_STATUS_ID_MAP(8930, VERSION_MAJOR),
137 MSM_RPM_STATUS_ID_MAP(8930, VERSION_MINOR),
138 MSM_RPM_STATUS_ID_MAP(8930, VERSION_BUILD),
139 MSM_RPM_STATUS_ID_MAP(8930, SUPPORTED_RESOURCES_0),
140 MSM_RPM_STATUS_ID_MAP(8930, SUPPORTED_RESOURCES_1),
141 MSM_RPM_STATUS_ID_MAP(8930, SUPPORTED_RESOURCES_2),
142 MSM_RPM_STATUS_ID_MAP(8930, RESERVED_SUPPORTED_RESOURCES_0),
143 MSM_RPM_STATUS_ID_MAP(8930, SEQUENCE),
144 MSM_RPM_STATUS_ID_MAP(8930, RPM_CTL),
145 MSM_RPM_STATUS_ID_MAP(8930, CXO_CLK),
146 MSM_RPM_STATUS_ID_MAP(8930, PXO_CLK),
147 MSM_RPM_STATUS_ID_MAP(8930, APPS_FABRIC_CLK),
148 MSM_RPM_STATUS_ID_MAP(8930, SYSTEM_FABRIC_CLK),
149 MSM_RPM_STATUS_ID_MAP(8930, MM_FABRIC_CLK),
150 MSM_RPM_STATUS_ID_MAP(8930, DAYTONA_FABRIC_CLK),
151 MSM_RPM_STATUS_ID_MAP(8930, SFPB_CLK),
152 MSM_RPM_STATUS_ID_MAP(8930, CFPB_CLK),
153 MSM_RPM_STATUS_ID_MAP(8930, MMFPB_CLK),
154 MSM_RPM_STATUS_ID_MAP(8930, EBI1_CLK),
155 MSM_RPM_STATUS_ID_MAP(8930, APPS_FABRIC_CFG_HALT),
156 MSM_RPM_STATUS_ID_MAP(8930, APPS_FABRIC_CFG_CLKMOD),
157 MSM_RPM_STATUS_ID_MAP(8930, APPS_FABRIC_CFG_IOCTL),
158 MSM_RPM_STATUS_ID_MAP(8930, APPS_FABRIC_ARB),
159 MSM_RPM_STATUS_ID_MAP(8930, SYS_FABRIC_CFG_HALT),
160 MSM_RPM_STATUS_ID_MAP(8930, SYS_FABRIC_CFG_CLKMOD),
161 MSM_RPM_STATUS_ID_MAP(8930, SYS_FABRIC_CFG_IOCTL),
162 MSM_RPM_STATUS_ID_MAP(8930, SYSTEM_FABRIC_ARB),
163 MSM_RPM_STATUS_ID_MAP(8930, MMSS_FABRIC_CFG_HALT),
164 MSM_RPM_STATUS_ID_MAP(8930, MMSS_FABRIC_CFG_CLKMOD),
165 MSM_RPM_STATUS_ID_MAP(8930, MMSS_FABRIC_CFG_IOCTL),
166 MSM_RPM_STATUS_ID_MAP(8930, MM_FABRIC_ARB),
167 MSM_RPM_STATUS_ID_MAP(8930, PM8038_S1_0),
168 MSM_RPM_STATUS_ID_MAP(8930, PM8038_S1_1),
169 MSM_RPM_STATUS_ID_MAP(8930, PM8038_S2_0),
170 MSM_RPM_STATUS_ID_MAP(8930, PM8038_S2_1),
171 MSM_RPM_STATUS_ID_MAP(8930, PM8038_S3_0),
172 MSM_RPM_STATUS_ID_MAP(8930, PM8038_S3_1),
173 MSM_RPM_STATUS_ID_MAP(8930, PM8038_S4_0),
174 MSM_RPM_STATUS_ID_MAP(8930, PM8038_S4_1),
175 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L1_0),
176 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L1_1),
177 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L2_0),
178 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L2_1),
179 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L3_0),
180 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L3_1),
181 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L4_0),
182 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L4_1),
183 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L5_0),
184 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L5_1),
185 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L6_0),
186 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L6_1),
187 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L7_0),
188 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L7_1),
189 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L8_0),
190 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L8_1),
191 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L9_0),
192 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L9_1),
193 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L10_0),
194 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L10_1),
195 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L11_0),
196 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L11_1),
197 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L12_0),
198 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L12_1),
199 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L13_0),
200 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L13_1),
201 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L14_0),
202 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L14_1),
203 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L15_0),
204 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L15_1),
205 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L16_0),
206 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L16_1),
207 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L17_0),
208 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L17_1),
209 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L18_0),
210 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L18_1),
211 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L19_0),
212 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L19_1),
213 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L20_0),
214 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L20_1),
215 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L21_0),
216 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L21_1),
217 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L22_0),
218 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L22_1),
219 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L23_0),
220 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L23_1),
221 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L24_0),
222 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L24_1),
223 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L25_0),
224 MSM_RPM_STATUS_ID_MAP(8930, PM8038_L25_1),
225 MSM_RPM_STATUS_ID_MAP(8930, PM8038_CLK1_0),
226 MSM_RPM_STATUS_ID_MAP(8930, PM8038_CLK1_1),
227 MSM_RPM_STATUS_ID_MAP(8930, PM8038_CLK2_0),
228 MSM_RPM_STATUS_ID_MAP(8930, PM8038_CLK2_1),
229 MSM_RPM_STATUS_ID_MAP(8930, PM8038_LVS1),
230 MSM_RPM_STATUS_ID_MAP(8930, PM8038_LVS2),
231 MSM_RPM_STATUS_ID_MAP(8930, NCP_0),
232 MSM_RPM_STATUS_ID_MAP(8930, NCP_1),
233 MSM_RPM_STATUS_ID_MAP(8930, CXO_BUFFERS),
234 MSM_RPM_STATUS_ID_MAP(8930, USB_OTG_SWITCH),
235 MSM_RPM_STATUS_ID_MAP(8930, HDMI_SWITCH),
Mahesh Sivasubramanianef2a0fa2012-01-24 15:57:01 -0700236 MSM_RPM_STATUS_ID_MAP(8930, QDSS_CLK),
Mahesh Sivasubramanian9e52ce42012-02-01 16:00:19 -0700237 MSM_RPM_STATUS_ID_MAP(8930, VOLTAGE_CORNER),
Praveen Chidambaram78499012011-11-01 17:15:17 -0600238 },
239 .target_ctrl_id = {
240 MSM_RPM_CTRL_MAP(8930, VERSION_MAJOR),
241 MSM_RPM_CTRL_MAP(8930, VERSION_MINOR),
242 MSM_RPM_CTRL_MAP(8930, VERSION_BUILD),
243 MSM_RPM_CTRL_MAP(8930, REQ_CTX_0),
244 MSM_RPM_CTRL_MAP(8930, REQ_SEL_0),
245 MSM_RPM_CTRL_MAP(8930, ACK_CTX_0),
246 MSM_RPM_CTRL_MAP(8930, ACK_SEL_0),
247 },
248 .sel_invalidate = MSM_RPM_8930_SEL_INVALIDATE,
249 .sel_notification = MSM_RPM_8930_SEL_NOTIFICATION,
250 .sel_last = MSM_RPM_8930_SEL_LAST,
251 .ver = {3, 0, 0},
252};
253
254struct platform_device msm8930_rpm_device = {
255 .name = "msm_rpm",
256 .id = -1,
257};
258
259static struct msm_rpm_log_platform_data msm_rpm_log_pdata = {
260 .phys_addr_base = 0x0010C000,
261 .reg_offsets = {
262 [MSM_RPM_LOG_PAGE_INDICES] = 0x00000080,
263 [MSM_RPM_LOG_PAGE_BUFFER] = 0x000000A0,
264 },
265 .phys_size = SZ_8K,
266 .log_len = 4096, /* log's buffer length in bytes */
267 .log_len_mask = (4096 >> 2) - 1, /* length mask in units of u32 */
268};
269
270struct platform_device msm8930_rpm_log_device = {
271 .name = "msm_rpm_log",
272 .id = -1,
273 .dev = {
274 .platform_data = &msm_rpm_log_pdata,
275 },
276};
277
278static struct msm_rpmstats_platform_data msm_rpm_stat_pdata = {
279 .phys_addr_base = 0x0010D204,
280 .phys_size = SZ_8K,
281};
282
283struct platform_device msm8930_rpm_stat_device = {
284 .name = "msm_rpm_stat",
285 .id = -1,
286 .dev = {
287 .platform_data = &msm_rpm_stat_pdata,
288 },
289};
290
Girish Mahadevan898c56d2012-06-05 16:09:19 -0600291static struct resource msm_rpm_rbcpr_resource = {
292 .start = 0x0010CB00,
293 .end = 0x0010CB00 + SZ_8K - 1,
294 .flags = IORESOURCE_MEM,
295};
296
297static struct msm_rpmrbcpr_platform_data msm_rpm_rbcpr_pdata = {
298 .rbcpr_data = {
299 .upside_steps = 1,
300 .downside_steps = 2,
301 .svs_voltage = 1050000,
302 .nominal_voltage = 1162500,
303 .turbo_voltage = 1287500,
304 },
305};
306
307struct platform_device msm8930_rpm_rbcpr_device = {
308 .name = "msm_rpm_rbcpr",
309 .id = -1,
310 .dev = {
311 .platform_data = &msm_rpm_rbcpr_pdata,
312 },
313 .resource = &msm_rpm_rbcpr_resource,
314};
315
Praveen Chidambaram8ea3dcd2011-12-07 14:46:31 -0700316static int msm8930_LPM_latency = 1000; /* >100 usec for WFI */
317
318struct platform_device msm8930_cpu_idle_device = {
319 .name = "msm_cpu_idle",
320 .id = -1,
321 .dev = {
322 .platform_data = &msm8930_LPM_latency,
323 },
324};
Praveen Chidambaram5c8adf22012-02-23 18:44:37 -0700325
326static struct msm_dcvs_freq_entry msm8930_freq[] = {
327 { 384000, 166981, 345600},
328 { 702000, 213049, 632502},
329 {1026000, 285712, 925613},
330 {1242000, 383945, 1176550},
331 {1458000, 419729, 1465478},
332 {1512000, 434116, 1546674},
333
334};
335
336static struct msm_dcvs_core_info msm8930_core_info = {
337 .freq_tbl = &msm8930_freq[0],
338 .core_param = {
339 .max_time_us = 100000,
340 .num_freq = ARRAY_SIZE(msm8930_freq),
341 },
342 .algo_param = {
343 .slack_time_us = 58000,
344 .scale_slack_time = 0,
345 .scale_slack_time_pct = 0,
346 .disable_pc_threshold = 1458000,
347 .em_window_size = 100000,
348 .em_max_util_pct = 97,
349 .ss_window_size = 1000000,
350 .ss_util_pct = 95,
351 .ss_iobusy_conv = 100,
352 },
353};
354
355struct platform_device msm8930_msm_gov_device = {
356 .name = "msm_dcvs_gov",
357 .id = -1,
358 .dev = {
359 .platform_data = &msm8930_core_info,
360 },
361};
Gagan Maccd5b3272012-02-09 18:13:10 -0700362
363struct platform_device msm_bus_8930_sys_fabric = {
364 .name = "msm_bus_fabric",
365 .id = MSM_BUS_FAB_SYSTEM,
366};
367struct platform_device msm_bus_8930_apps_fabric = {
368 .name = "msm_bus_fabric",
369 .id = MSM_BUS_FAB_APPSS,
370};
371struct platform_device msm_bus_8930_mm_fabric = {
372 .name = "msm_bus_fabric",
373 .id = MSM_BUS_FAB_MMSS,
374};
375struct platform_device msm_bus_8930_sys_fpb = {
376 .name = "msm_bus_fabric",
377 .id = MSM_BUS_FAB_SYSTEM_FPB,
378};
379struct platform_device msm_bus_8930_cpss_fpb = {
380 .name = "msm_bus_fabric",
381 .id = MSM_BUS_FAB_CPSS_FPB,
382};
383
Matt Wagantallab730bd2012-06-07 20:13:51 -0700384struct platform_device msm8627_device_acpuclk = {
385 .name = "acpuclk-8627",
386 .id = -1,
387};
388
Matt Wagantall6dcfa922012-06-07 20:13:51 -0700389struct platform_device msm8930_device_acpuclk = {
390 .name = "acpuclk-8930",
391 .id = -1,
392};
393
Matt Wagantall1f65d9d2012-04-25 14:24:20 -0700394static struct fs_driver_data gfx3d_fs_data = {
395 .clks = (struct fs_clk_data[]){
396 { .name = "core_clk", .reset_rate = 27000000 },
397 { .name = "iface_clk" },
398 { .name = "bus_clk" },
399 { 0 }
400 },
401 .bus_port0 = MSM_BUS_MASTER_GRAPHICS_3D,
402};
403
404static struct fs_driver_data ijpeg_fs_data = {
405 .clks = (struct fs_clk_data[]){
406 { .name = "core_clk" },
407 { .name = "iface_clk" },
408 { .name = "bus_clk" },
409 { 0 }
410 },
411 .bus_port0 = MSM_BUS_MASTER_JPEG_ENC,
412};
413
414static struct fs_driver_data mdp_fs_data = {
415 .clks = (struct fs_clk_data[]){
416 { .name = "core_clk" },
417 { .name = "iface_clk" },
418 { .name = "bus_clk" },
419 { .name = "vsync_clk" },
420 { .name = "lut_clk" },
421 { .name = "tv_src_clk" },
422 { .name = "tv_clk" },
423 { 0 }
424 },
425 .bus_port0 = MSM_BUS_MASTER_MDP_PORT0,
426 .bus_port1 = MSM_BUS_MASTER_MDP_PORT1,
427};
428
429static struct fs_driver_data rot_fs_data = {
430 .clks = (struct fs_clk_data[]){
431 { .name = "core_clk" },
432 { .name = "iface_clk" },
433 { .name = "bus_clk" },
434 { 0 }
435 },
436 .bus_port0 = MSM_BUS_MASTER_ROTATOR,
437};
438
439static struct fs_driver_data ved_fs_data = {
440 .clks = (struct fs_clk_data[]){
441 { .name = "core_clk" },
442 { .name = "iface_clk" },
443 { .name = "bus_clk" },
444 { 0 }
445 },
446 .bus_port0 = MSM_BUS_MASTER_HD_CODEC_PORT0,
447 .bus_port1 = MSM_BUS_MASTER_HD_CODEC_PORT1,
448};
449
450static struct fs_driver_data vfe_fs_data = {
451 .clks = (struct fs_clk_data[]){
452 { .name = "core_clk" },
453 { .name = "iface_clk" },
454 { .name = "bus_clk" },
455 { 0 }
456 },
457 .bus_port0 = MSM_BUS_MASTER_VFE,
458};
459
460static struct fs_driver_data vpe_fs_data = {
461 .clks = (struct fs_clk_data[]){
462 { .name = "core_clk" },
463 { .name = "iface_clk" },
464 { .name = "bus_clk" },
465 { 0 }
466 },
467 .bus_port0 = MSM_BUS_MASTER_VPE,
468};
469
470struct platform_device *msm8930_footswitch[] __initdata = {
Matt Wagantalld4aab1e2012-05-03 20:26:56 -0700471 FS_8X60(FS_MDP, "vdd", "mdp.0", &mdp_fs_data),
Matt Wagantall316f2fc2012-05-03 20:41:42 -0700472 FS_8X60(FS_ROT, "vdd", "msm_rotator.0", &rot_fs_data),
Matt Wagantalle4454b82012-05-03 20:48:01 -0700473 FS_8X60(FS_IJPEG, "vdd", "msm_gemini.0", &ijpeg_fs_data),
Kiran Kumar H Nfa18a032012-06-25 14:34:18 -0700474 FS_8X60(FS_VFE, "vdd", "msm_vfe.0", &vfe_fs_data),
475 FS_8X60(FS_VPE, "vdd", "msm_vpe.0", &vpe_fs_data),
Matt Wagantalld6fbf232012-05-03 20:09:28 -0700476 FS_8X60(FS_GFX3D, "vdd", "kgsl-3d0.0", &gfx3d_fs_data),
Matt Wagantall5e46aac2012-05-03 20:20:18 -0700477 FS_8X60(FS_VED, "vdd", "msm_vidc.0", &ved_fs_data),
Matt Wagantall1f65d9d2012-04-25 14:24:20 -0700478};
479unsigned msm8930_num_footswitch __initdata = ARRAY_SIZE(msm8930_footswitch);
480
Arun Menonaabf2632012-02-24 15:30:47 -0800481/* MSM Video core device */
482#ifdef CONFIG_MSM_BUS_SCALING
483static struct msm_bus_vectors vidc_init_vectors[] = {
484 {
485 .src = MSM_BUS_MASTER_HD_CODEC_PORT0,
486 .dst = MSM_BUS_SLAVE_EBI_CH0,
487 .ab = 0,
488 .ib = 0,
489 },
490 {
491 .src = MSM_BUS_MASTER_HD_CODEC_PORT1,
492 .dst = MSM_BUS_SLAVE_EBI_CH0,
493 .ab = 0,
494 .ib = 0,
495 },
496 {
497 .src = MSM_BUS_MASTER_AMPSS_M0,
498 .dst = MSM_BUS_SLAVE_EBI_CH0,
499 .ab = 0,
500 .ib = 0,
501 },
502 {
503 .src = MSM_BUS_MASTER_AMPSS_M0,
504 .dst = MSM_BUS_SLAVE_EBI_CH0,
505 .ab = 0,
506 .ib = 0,
507 },
508};
509static struct msm_bus_vectors vidc_venc_vga_vectors[] = {
510 {
511 .src = MSM_BUS_MASTER_HD_CODEC_PORT0,
512 .dst = MSM_BUS_SLAVE_EBI_CH0,
513 .ab = 54525952,
514 .ib = 436207616,
515 },
516 {
517 .src = MSM_BUS_MASTER_HD_CODEC_PORT1,
518 .dst = MSM_BUS_SLAVE_EBI_CH0,
519 .ab = 72351744,
520 .ib = 289406976,
521 },
522 {
523 .src = MSM_BUS_MASTER_AMPSS_M0,
524 .dst = MSM_BUS_SLAVE_EBI_CH0,
525 .ab = 500000,
526 .ib = 1000000,
527 },
528 {
529 .src = MSM_BUS_MASTER_AMPSS_M0,
530 .dst = MSM_BUS_SLAVE_EBI_CH0,
531 .ab = 500000,
532 .ib = 1000000,
533 },
534};
535static struct msm_bus_vectors vidc_vdec_vga_vectors[] = {
536 {
537 .src = MSM_BUS_MASTER_HD_CODEC_PORT0,
538 .dst = MSM_BUS_SLAVE_EBI_CH0,
539 .ab = 40894464,
540 .ib = 327155712,
541 },
542 {
543 .src = MSM_BUS_MASTER_HD_CODEC_PORT1,
544 .dst = MSM_BUS_SLAVE_EBI_CH0,
545 .ab = 48234496,
546 .ib = 192937984,
547 },
548 {
549 .src = MSM_BUS_MASTER_AMPSS_M0,
550 .dst = MSM_BUS_SLAVE_EBI_CH0,
551 .ab = 500000,
552 .ib = 2000000,
553 },
554 {
555 .src = MSM_BUS_MASTER_AMPSS_M0,
556 .dst = MSM_BUS_SLAVE_EBI_CH0,
557 .ab = 500000,
558 .ib = 2000000,
559 },
560};
561static struct msm_bus_vectors vidc_venc_720p_vectors[] = {
562 {
563 .src = MSM_BUS_MASTER_HD_CODEC_PORT0,
564 .dst = MSM_BUS_SLAVE_EBI_CH0,
565 .ab = 163577856,
566 .ib = 1308622848,
567 },
568 {
569 .src = MSM_BUS_MASTER_HD_CODEC_PORT1,
570 .dst = MSM_BUS_SLAVE_EBI_CH0,
571 .ab = 219152384,
572 .ib = 876609536,
573 },
574 {
575 .src = MSM_BUS_MASTER_AMPSS_M0,
576 .dst = MSM_BUS_SLAVE_EBI_CH0,
577 .ab = 1750000,
578 .ib = 3500000,
579 },
580 {
581 .src = MSM_BUS_MASTER_AMPSS_M0,
582 .dst = MSM_BUS_SLAVE_EBI_CH0,
583 .ab = 1750000,
584 .ib = 3500000,
585 },
586};
587static struct msm_bus_vectors vidc_vdec_720p_vectors[] = {
588 {
589 .src = MSM_BUS_MASTER_HD_CODEC_PORT0,
590 .dst = MSM_BUS_SLAVE_EBI_CH0,
591 .ab = 121634816,
592 .ib = 973078528,
593 },
594 {
595 .src = MSM_BUS_MASTER_HD_CODEC_PORT1,
596 .dst = MSM_BUS_SLAVE_EBI_CH0,
597 .ab = 155189248,
598 .ib = 620756992,
599 },
600 {
601 .src = MSM_BUS_MASTER_AMPSS_M0,
602 .dst = MSM_BUS_SLAVE_EBI_CH0,
603 .ab = 1750000,
604 .ib = 7000000,
605 },
606 {
607 .src = MSM_BUS_MASTER_AMPSS_M0,
608 .dst = MSM_BUS_SLAVE_EBI_CH0,
609 .ab = 1750000,
610 .ib = 7000000,
611 },
612};
613static struct msm_bus_vectors vidc_venc_1080p_vectors[] = {
614 {
615 .src = MSM_BUS_MASTER_HD_CODEC_PORT0,
616 .dst = MSM_BUS_SLAVE_EBI_CH0,
617 .ab = 372244480,
618 .ib = 2560000000U,
619 },
620 {
621 .src = MSM_BUS_MASTER_HD_CODEC_PORT1,
622 .dst = MSM_BUS_SLAVE_EBI_CH0,
623 .ab = 501219328,
624 .ib = 2560000000U,
625 },
626 {
627 .src = MSM_BUS_MASTER_AMPSS_M0,
628 .dst = MSM_BUS_SLAVE_EBI_CH0,
629 .ab = 2500000,
630 .ib = 5000000,
631 },
632 {
633 .src = MSM_BUS_MASTER_AMPSS_M0,
634 .dst = MSM_BUS_SLAVE_EBI_CH0,
635 .ab = 2500000,
636 .ib = 5000000,
637 },
638};
639static struct msm_bus_vectors vidc_vdec_1080p_vectors[] = {
640 {
641 .src = MSM_BUS_MASTER_HD_CODEC_PORT0,
642 .dst = MSM_BUS_SLAVE_EBI_CH0,
643 .ab = 222298112,
644 .ib = 2560000000U,
645 },
646 {
647 .src = MSM_BUS_MASTER_HD_CODEC_PORT1,
648 .dst = MSM_BUS_SLAVE_EBI_CH0,
649 .ab = 330301440,
650 .ib = 2560000000U,
651 },
652 {
653 .src = MSM_BUS_MASTER_AMPSS_M0,
654 .dst = MSM_BUS_SLAVE_EBI_CH0,
655 .ab = 2500000,
656 .ib = 700000000,
657 },
658 {
659 .src = MSM_BUS_MASTER_AMPSS_M0,
660 .dst = MSM_BUS_SLAVE_EBI_CH0,
661 .ab = 2500000,
662 .ib = 10000000,
663 },
664};
665
666static struct msm_bus_paths vidc_bus_client_config[] = {
667 {
668 ARRAY_SIZE(vidc_init_vectors),
669 vidc_init_vectors,
670 },
671 {
672 ARRAY_SIZE(vidc_venc_vga_vectors),
673 vidc_venc_vga_vectors,
674 },
675 {
676 ARRAY_SIZE(vidc_vdec_vga_vectors),
677 vidc_vdec_vga_vectors,
678 },
679 {
680 ARRAY_SIZE(vidc_venc_720p_vectors),
681 vidc_venc_720p_vectors,
682 },
683 {
684 ARRAY_SIZE(vidc_vdec_720p_vectors),
685 vidc_vdec_720p_vectors,
686 },
687 {
688 ARRAY_SIZE(vidc_venc_1080p_vectors),
689 vidc_venc_1080p_vectors,
690 },
691 {
692 ARRAY_SIZE(vidc_vdec_1080p_vectors),
693 vidc_vdec_1080p_vectors,
694 },
695};
696
697static struct msm_bus_scale_pdata vidc_bus_client_data = {
698 vidc_bus_client_config,
699 ARRAY_SIZE(vidc_bus_client_config),
700 .name = "vidc",
701};
702#endif
703
704#define MSM_VIDC_BASE_PHYS 0x04400000
705#define MSM_VIDC_BASE_SIZE 0x00100000
706
707static struct resource apq8930_device_vidc_resources[] = {
708 {
709 .start = MSM_VIDC_BASE_PHYS,
710 .end = MSM_VIDC_BASE_PHYS + MSM_VIDC_BASE_SIZE - 1,
711 .flags = IORESOURCE_MEM,
712 },
713 {
714 .start = VCODEC_IRQ,
715 .end = VCODEC_IRQ,
716 .flags = IORESOURCE_IRQ,
717 },
718};
719
720struct msm_vidc_platform_data apq8930_vidc_platform_data = {
721#ifdef CONFIG_MSM_BUS_SCALING
722 .vidc_bus_client_pdata = &vidc_bus_client_data,
723#endif
724#ifdef CONFIG_MSM_MULTIMEDIA_USE_ION
725 .memtype = ION_CP_MM_HEAP_ID,
726 .enable_ion = 1,
Deepak Kotur8097f782012-05-14 14:13:06 -0700727 .cp_enabled = 1,
Arun Menonaabf2632012-02-24 15:30:47 -0800728#else
729 .memtype = MEMTYPE_EBI1,
730 .enable_ion = 0,
731#endif
Anil Gahlotd0ce26d2012-05-08 17:58:46 -0700732 .disable_dmx = 1,
Arun Menonaabf2632012-02-24 15:30:47 -0800733 .disable_fullhd = 0,
Riaz Rahaman84f8c682012-05-30 13:32:10 +0530734 .fw_addr = 0x9fe00000,
Arun Menonaabf2632012-02-24 15:30:47 -0800735};
736
737struct platform_device apq8930_msm_device_vidc = {
738 .name = "msm_vidc",
739 .id = 0,
740 .num_resources = ARRAY_SIZE(apq8930_device_vidc_resources),
741 .resource = apq8930_device_vidc_resources,
742 .dev = {
743 .platform_data = &apq8930_vidc_platform_data,
744 },
745};
746
747struct platform_device *vidc_device[] __initdata = {
748 &apq8930_msm_device_vidc
749};
750
751void __init msm8930_add_vidc_device(void)
752{
753 if (cpu_is_msm8627()) {
754 struct msm_vidc_platform_data *pdata;
755 pdata = (struct msm_vidc_platform_data *)
756 apq8930_msm_device_vidc.dev.platform_data;
757 pdata->disable_fullhd = 1;
758 }
759 platform_add_devices(vidc_device, ARRAY_SIZE(vidc_device));
760}
Laura Abbott0577d7b2012-04-17 11:14:30 -0700761
762struct msm_iommu_domain_name msm8930_iommu_ctx_names[] = {
763 /* Camera */
764 {
765 .name = "vpe_src",
766 .domain = CAMERA_DOMAIN,
767 },
768 /* Camera */
769 {
770 .name = "vpe_dst",
771 .domain = CAMERA_DOMAIN,
772 },
773 /* Camera */
774 {
775 .name = "vfe_imgwr",
776 .domain = CAMERA_DOMAIN,
777 },
778 /* Camera */
779 {
780 .name = "vfe_misc",
781 .domain = CAMERA_DOMAIN,
782 },
783 /* Camera */
784 {
785 .name = "ijpeg_src",
786 .domain = CAMERA_DOMAIN,
787 },
788 /* Camera */
789 {
790 .name = "ijpeg_dst",
791 .domain = CAMERA_DOMAIN,
792 },
793 /* Camera */
794 {
795 .name = "jpegd_src",
796 .domain = CAMERA_DOMAIN,
797 },
798 /* Camera */
799 {
800 .name = "jpegd_dst",
801 .domain = CAMERA_DOMAIN,
802 },
803 /* Rotator */
804 {
805 .name = "rot_src",
Olav Hauganef95ae32012-05-15 09:50:30 -0700806 .domain = ROTATOR_SRC_DOMAIN,
Laura Abbott0577d7b2012-04-17 11:14:30 -0700807 },
808 /* Rotator */
809 {
810 .name = "rot_dst",
Olav Hauganef95ae32012-05-15 09:50:30 -0700811 .domain = ROTATOR_SRC_DOMAIN,
Laura Abbott0577d7b2012-04-17 11:14:30 -0700812 },
813 /* Video */
814 {
815 .name = "vcodec_a_mm1",
816 .domain = VIDEO_DOMAIN,
817 },
818 /* Video */
819 {
820 .name = "vcodec_b_mm2",
821 .domain = VIDEO_DOMAIN,
822 },
823 /* Video */
824 {
825 .name = "vcodec_a_stream",
826 .domain = VIDEO_DOMAIN,
827 },
828};
829
830static struct mem_pool msm8930_video_pools[] = {
831 /*
832 * Video hardware has the following requirements:
833 * 1. All video addresses used by the video hardware must be at a higher
834 * address than video firmware address.
835 * 2. Video hardware can only access a range of 256MB from the base of
836 * the video firmware.
837 */
838 [VIDEO_FIRMWARE_POOL] =
839 /* Low addresses, intended for video firmware */
840 {
841 .paddr = SZ_128K,
842 .size = SZ_16M - SZ_128K,
843 },
844 [VIDEO_MAIN_POOL] =
845 /* Main video pool */
846 {
847 .paddr = SZ_16M,
848 .size = SZ_256M - SZ_16M,
849 },
850 [GEN_POOL] =
851 /* Remaining address space up to 2G */
852 {
853 .paddr = SZ_256M,
854 .size = SZ_2G - SZ_256M,
855 },
856};
857
858static struct mem_pool msm8930_camera_pools[] = {
859 [GEN_POOL] =
860 /* One address space for camera */
861 {
862 .paddr = SZ_128K,
863 .size = SZ_2G - SZ_128K,
864 },
865};
866
Olav Hauganef95ae32012-05-15 09:50:30 -0700867static struct mem_pool msm8930_display_read_pools[] = {
Laura Abbott0577d7b2012-04-17 11:14:30 -0700868 [GEN_POOL] =
Olav Hauganef95ae32012-05-15 09:50:30 -0700869 /* One address space for display reads */
Laura Abbott0577d7b2012-04-17 11:14:30 -0700870 {
871 .paddr = SZ_128K,
872 .size = SZ_2G - SZ_128K,
873 },
874};
875
Olav Hauganef95ae32012-05-15 09:50:30 -0700876static struct mem_pool msm8930_rotator_src_pools[] = {
Laura Abbott0577d7b2012-04-17 11:14:30 -0700877 [GEN_POOL] =
Olav Hauganef95ae32012-05-15 09:50:30 -0700878 /* One address space for rotator src */
Laura Abbott0577d7b2012-04-17 11:14:30 -0700879 {
880 .paddr = SZ_128K,
881 .size = SZ_2G - SZ_128K,
882 },
883};
884
885static struct msm_iommu_domain msm8930_iommu_domains[] = {
886 [VIDEO_DOMAIN] = {
887 .iova_pools = msm8930_video_pools,
888 .npools = ARRAY_SIZE(msm8930_video_pools),
889 },
890 [CAMERA_DOMAIN] = {
891 .iova_pools = msm8930_camera_pools,
892 .npools = ARRAY_SIZE(msm8930_camera_pools),
893 },
Olav Hauganef95ae32012-05-15 09:50:30 -0700894 [DISPLAY_READ_DOMAIN] = {
895 .iova_pools = msm8930_display_read_pools,
896 .npools = ARRAY_SIZE(msm8930_display_read_pools),
Laura Abbott0577d7b2012-04-17 11:14:30 -0700897 },
Olav Hauganef95ae32012-05-15 09:50:30 -0700898 [ROTATOR_SRC_DOMAIN] = {
899 .iova_pools = msm8930_rotator_src_pools,
900 .npools = ARRAY_SIZE(msm8930_rotator_src_pools),
Laura Abbott0577d7b2012-04-17 11:14:30 -0700901 },
902};
903
904struct iommu_domains_pdata msm8930_iommu_domain_pdata = {
905 .domains = msm8930_iommu_domains,
906 .ndomains = ARRAY_SIZE(msm8930_iommu_domains),
907 .domain_names = msm8930_iommu_ctx_names,
908 .nnames = ARRAY_SIZE(msm8930_iommu_ctx_names),
909 .domain_alloc_flags = 0,
910};
911
912struct platform_device msm8930_iommu_domain_device = {
913 .name = "iommu_domains",
914 .id = -1,
915 .dev = {
916 .platform_data = &msm8930_iommu_domain_pdata,
Laura Abbott532b2df2012-04-12 10:53:48 -0700917 }
918};
919
920struct msm_rtb_platform_data msm8930_rtb_pdata = {
921 .size = SZ_1M,
922};
923
924static int __init msm_rtb_set_buffer_size(char *p)
925{
926 int s;
927
928 s = memparse(p, NULL);
929 msm8930_rtb_pdata.size = ALIGN(s, SZ_4K);
930 return 0;
931}
932early_param("msm_rtb_size", msm_rtb_set_buffer_size);
933
934
935struct platform_device msm8930_rtb_device = {
936 .name = "msm_rtb",
937 .id = -1,
938 .dev = {
939 .platform_data = &msm8930_rtb_pdata,
Laura Abbott0577d7b2012-04-17 11:14:30 -0700940 },
941};
Laura Abbottf3173042012-05-29 15:23:18 -0700942
943#define MSM8930_L1_SIZE SZ_1M
944/*
945 * The actual L2 size is smaller but we need a larger buffer
946 * size to store other dump information
947 */
948#define MSM8930_L2_SIZE SZ_4M
949
950struct msm_cache_dump_platform_data msm8930_cache_dump_pdata = {
951 .l2_size = MSM8930_L2_SIZE,
952 .l1_size = MSM8930_L1_SIZE,
953};
954
955struct platform_device msm8930_cache_dump_device = {
956 .name = "msm_cache_dump",
957 .id = -1,
958 .dev = {
959 .platform_data = &msm8930_cache_dump_pdata,
960 },
961};