blob: f2b52b2bfa34a417b18ae11b121cbf7461df0f9f [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* Copyright (c) 2011, 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/list.h>
16#include <linux/platform_device.h>
17#include <linux/msm_rotator.h>
18#include <linux/clkdev.h>
19#include <mach/irqs-8064.h>
20#include <mach/board.h>
21#include <mach/msm_iomap.h>
22#include "clock.h"
23#include "devices.h"
24
25/* Address of GSBI blocks */
26#define MSM_GSBI3_PHYS 0x16200000
Harini Jayaramanc4c58692011-07-19 14:50:10 -060027#define MSM_GSBI4_PHYS 0x16300000
28#define MSM_GSBI5_PHYS 0x1A200000
29#define MSM_GSBI6_PHYS 0x16500000
30#define MSM_GSBI7_PHYS 0x16600000
31
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070032#define MSM_UART3DM_PHYS (MSM_GSBI3_PHYS + 0x40000)
33
Harini Jayaramanc4c58692011-07-19 14:50:10 -060034/* GSBI QUP devices */
35#define MSM_GSBI3_QUP_PHYS (MSM_GSBI3_PHYS + 0x80000)
36#define MSM_GSBI4_QUP_PHYS (MSM_GSBI4_PHYS + 0x80000)
37#define MSM_GSBI5_QUP_PHYS (MSM_GSBI5_PHYS + 0x80000)
38#define MSM_GSBI6_QUP_PHYS (MSM_GSBI6_PHYS + 0x80000)
39#define MSM_GSBI7_QUP_PHYS (MSM_GSBI7_PHYS + 0x80000)
40#define MSM_QUP_SIZE SZ_4K
41
Kenneth Heitke36920d32011-07-20 16:44:30 -060042/* Address of SSBI CMD */
43#define MSM_PMIC1_SSBI_CMD_PHYS 0x00500000
44#define MSM_PMIC2_SSBI_CMD_PHYS 0x00C00000
45#define MSM_PMIC_SSBI_SIZE SZ_4K
Harini Jayaramanc4c58692011-07-19 14:50:10 -060046
Hemant Kumarcaa09092011-07-30 00:26:33 -070047/* Address of HS USBOTG1 */
48#define MSM_HSUSB_PHYS 0x12500000
49#define MSM_HSUSB_SIZE SZ_4K
50
51
Joel King0581896d2011-07-19 16:43:28 -070052static struct resource msm_dmov_resource[] = {
53 {
54 .start = ADM_0_SCSS_0_IRQ,
55 .end = (resource_size_t)MSM_DMOV_BASE,
56 .flags = IORESOURCE_IRQ,
57 },
58};
59
60struct platform_device msm_device_dmov = {
61 .name = "msm_dmov",
62 .id = -1,
63 .resource = msm_dmov_resource,
64 .num_resources = ARRAY_SIZE(msm_dmov_resource),
65};
66
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070067static struct resource resources_uart_gsbi3[] = {
68 {
69 .start = GSBI3_UARTDM_IRQ,
70 .end = GSBI3_UARTDM_IRQ,
71 .flags = IORESOURCE_IRQ,
72 },
73 {
74 .start = MSM_UART3DM_PHYS,
75 .end = MSM_UART3DM_PHYS + PAGE_SIZE - 1,
76 .name = "uartdm_resource",
77 .flags = IORESOURCE_MEM,
78 },
79 {
80 .start = MSM_GSBI3_PHYS,
81 .end = MSM_GSBI3_PHYS + PAGE_SIZE - 1,
82 .name = "gsbi_resource",
83 .flags = IORESOURCE_MEM,
84 },
85};
86
87struct platform_device apq8064_device_uart_gsbi3 = {
88 .name = "msm_serial_hsl",
89 .id = 0,
90 .num_resources = ARRAY_SIZE(resources_uart_gsbi3),
91 .resource = resources_uart_gsbi3,
92};
93
94static struct resource resources_qup_spi_gsbi5[] = {
95 {
96 .name = "spi_base",
97 .start = MSM_GSBI5_QUP_PHYS,
98 .end = MSM_GSBI5_QUP_PHYS + SZ_4K - 1,
99 .flags = IORESOURCE_MEM,
100 },
101 {
102 .name = "gsbi_base",
103 .start = MSM_GSBI5_PHYS,
104 .end = MSM_GSBI5_PHYS + 4 - 1,
105 .flags = IORESOURCE_MEM,
106 },
107 {
108 .name = "spi_irq_in",
109 .start = GSBI5_QUP_IRQ,
110 .end = GSBI5_QUP_IRQ,
111 .flags = IORESOURCE_IRQ,
112 },
113};
114
115struct platform_device apq8064_device_qup_spi_gsbi5 = {
116 .name = "spi_qsd",
117 .id = 0,
118 .num_resources = ARRAY_SIZE(resources_qup_spi_gsbi5),
119 .resource = resources_qup_spi_gsbi5,
120};
121
122static struct resource resources_ssbi_pmic1[] = {
123 {
124 .start = MSM_PMIC1_SSBI_CMD_PHYS,
125 .end = MSM_PMIC1_SSBI_CMD_PHYS + MSM_PMIC_SSBI_SIZE - 1,
126 .flags = IORESOURCE_MEM,
127 },
128};
129
130struct platform_device apq8064_device_ssbi_pmic1 = {
131 .name = "msm_ssbi",
132 .id = 0,
133 .resource = resources_ssbi_pmic1,
134 .num_resources = ARRAY_SIZE(resources_ssbi_pmic1),
135};
136
137static struct resource resources_ssbi_pmic2[] = {
138 {
139 .start = MSM_PMIC2_SSBI_CMD_PHYS,
140 .end = MSM_PMIC2_SSBI_CMD_PHYS + MSM_PMIC_SSBI_SIZE - 1,
141 .flags = IORESOURCE_MEM,
142 },
143};
144
145struct platform_device apq8064_device_ssbi_pmic2 = {
146 .name = "msm_ssbi",
147 .id = 1,
148 .resource = resources_ssbi_pmic2,
149 .num_resources = ARRAY_SIZE(resources_ssbi_pmic2),
150};
151
152static struct resource resources_otg[] = {
153 {
154 .start = MSM_HSUSB_PHYS,
155 .end = MSM_HSUSB_PHYS + MSM_HSUSB_SIZE - 1,
156 .flags = IORESOURCE_MEM,
157 },
158 {
159 .start = USB1_HS_IRQ,
160 .end = USB1_HS_IRQ,
161 .flags = IORESOURCE_IRQ,
162 },
163};
164
165struct platform_device msm_device_otg = {
166 .name = "msm_otg",
167 .id = -1,
168 .num_resources = ARRAY_SIZE(resources_otg),
169 .resource = resources_otg,
170 .dev = {
171 .coherent_dma_mask = 0xffffffff,
172 },
173};
174
175static struct resource resources_hsusb[] = {
176 {
177 .start = MSM_HSUSB_PHYS,
178 .end = MSM_HSUSB_PHYS + MSM_HSUSB_SIZE - 1,
179 .flags = IORESOURCE_MEM,
180 },
181 {
182 .start = USB1_HS_IRQ,
183 .end = USB1_HS_IRQ,
184 .flags = IORESOURCE_IRQ,
185 },
186};
187
188struct platform_device msm_device_gadget_peripheral = {
189 .name = "msm_hsusb",
190 .id = -1,
191 .num_resources = ARRAY_SIZE(resources_hsusb),
192 .resource = resources_hsusb,
193 .dev = {
194 .coherent_dma_mask = 0xffffffff,
195 },
196};
197
198#define MSM_SDC1_BASE 0x12400000
199#define MSM_SDC1_DML_BASE (MSM_SDC1_BASE + 0x800)
200#define MSM_SDC1_BAM_BASE (MSM_SDC1_BASE + 0x2000)
201#define MSM_SDC2_BASE 0x12140000
202#define MSM_SDC2_DML_BASE (MSM_SDC2_BASE + 0x800)
203#define MSM_SDC2_BAM_BASE (MSM_SDC2_BASE + 0x2000)
204#define MSM_SDC3_BASE 0x12180000
205#define MSM_SDC3_DML_BASE (MSM_SDC3_BASE + 0x800)
206#define MSM_SDC3_BAM_BASE (MSM_SDC3_BASE + 0x2000)
207#define MSM_SDC4_BASE 0x121C0000
208#define MSM_SDC4_DML_BASE (MSM_SDC4_BASE + 0x800)
209#define MSM_SDC4_BAM_BASE (MSM_SDC4_BASE + 0x2000)
210
211static struct resource resources_sdc1[] = {
212 {
213 .name = "core_mem",
214 .flags = IORESOURCE_MEM,
215 .start = MSM_SDC1_BASE,
216 .end = MSM_SDC1_DML_BASE - 1,
217 },
218 {
219 .name = "core_irq",
220 .flags = IORESOURCE_IRQ,
221 .start = SDC1_IRQ_0,
222 .end = SDC1_IRQ_0
223 },
224#ifdef CONFIG_MMC_MSM_SPS_SUPPORT
225 {
226 .name = "sdcc_dml_addr",
227 .start = MSM_SDC1_DML_BASE,
228 .end = MSM_SDC1_BAM_BASE - 1,
229 .flags = IORESOURCE_MEM,
230 },
231 {
232 .name = "sdcc_bam_addr",
233 .start = MSM_SDC1_BAM_BASE,
234 .end = MSM_SDC1_BAM_BASE + (2 * SZ_4K) - 1,
235 .flags = IORESOURCE_MEM,
236 },
237 {
238 .name = "sdcc_bam_irq",
239 .start = SDC1_BAM_IRQ,
240 .end = SDC1_BAM_IRQ,
241 .flags = IORESOURCE_IRQ,
242 },
243#endif
244};
245
246static struct resource resources_sdc2[] = {
247 {
248 .name = "core_mem",
249 .flags = IORESOURCE_MEM,
250 .start = MSM_SDC2_BASE,
251 .end = MSM_SDC2_DML_BASE - 1,
252 },
253 {
254 .name = "core_irq",
255 .flags = IORESOURCE_IRQ,
256 .start = SDC2_IRQ_0,
257 .end = SDC2_IRQ_0
258 },
259#ifdef CONFIG_MMC_MSM_SPS_SUPPORT
260 {
261 .name = "sdcc_dml_addr",
262 .start = MSM_SDC2_DML_BASE,
263 .end = MSM_SDC2_BAM_BASE - 1,
264 .flags = IORESOURCE_MEM,
265 },
266 {
267 .name = "sdcc_bam_addr",
268 .start = MSM_SDC2_BAM_BASE,
269 .end = MSM_SDC2_BAM_BASE + (2 * SZ_4K) - 1,
270 .flags = IORESOURCE_MEM,
271 },
272 {
273 .name = "sdcc_bam_irq",
274 .start = SDC2_BAM_IRQ,
275 .end = SDC2_BAM_IRQ,
276 .flags = IORESOURCE_IRQ,
277 },
278#endif
279};
280
281static struct resource resources_sdc3[] = {
282 {
283 .name = "core_mem",
284 .flags = IORESOURCE_MEM,
285 .start = MSM_SDC3_BASE,
286 .end = MSM_SDC3_DML_BASE - 1,
287 },
288 {
289 .name = "core_irq",
290 .flags = IORESOURCE_IRQ,
291 .start = SDC3_IRQ_0,
292 .end = SDC3_IRQ_0
293 },
294#ifdef CONFIG_MMC_MSM_SPS_SUPPORT
295 {
296 .name = "sdcc_dml_addr",
297 .start = MSM_SDC3_DML_BASE,
298 .end = MSM_SDC3_BAM_BASE - 1,
299 .flags = IORESOURCE_MEM,
300 },
301 {
302 .name = "sdcc_bam_addr",
303 .start = MSM_SDC3_BAM_BASE,
304 .end = MSM_SDC3_BAM_BASE + (2 * SZ_4K) - 1,
305 .flags = IORESOURCE_MEM,
306 },
307 {
308 .name = "sdcc_bam_irq",
309 .start = SDC3_BAM_IRQ,
310 .end = SDC3_BAM_IRQ,
311 .flags = IORESOURCE_IRQ,
312 },
313#endif
314};
315
316static struct resource resources_sdc4[] = {
317 {
318 .name = "core_mem",
319 .flags = IORESOURCE_MEM,
320 .start = MSM_SDC4_BASE,
321 .end = MSM_SDC4_DML_BASE - 1,
322 },
323 {
324 .name = "core_irq",
325 .flags = IORESOURCE_IRQ,
326 .start = SDC4_IRQ_0,
327 .end = SDC4_IRQ_0
328 },
329#ifdef CONFIG_MMC_MSM_SPS_SUPPORT
330 {
331 .name = "sdcc_dml_addr",
332 .start = MSM_SDC4_DML_BASE,
333 .end = MSM_SDC4_BAM_BASE - 1,
334 .flags = IORESOURCE_MEM,
335 },
336 {
337 .name = "sdcc_bam_addr",
338 .start = MSM_SDC4_BAM_BASE,
339 .end = MSM_SDC4_BAM_BASE + (2 * SZ_4K) - 1,
340 .flags = IORESOURCE_MEM,
341 },
342 {
343 .name = "sdcc_bam_irq",
344 .start = SDC4_BAM_IRQ,
345 .end = SDC4_BAM_IRQ,
346 .flags = IORESOURCE_IRQ,
347 },
348#endif
349};
350
351struct platform_device apq8064_device_sdc1 = {
352 .name = "msm_sdcc",
353 .id = 1,
354 .num_resources = ARRAY_SIZE(resources_sdc1),
355 .resource = resources_sdc1,
356 .dev = {
357 .coherent_dma_mask = 0xffffffff,
358 },
359};
360
361struct platform_device apq8064_device_sdc2 = {
362 .name = "msm_sdcc",
363 .id = 2,
364 .num_resources = ARRAY_SIZE(resources_sdc2),
365 .resource = resources_sdc2,
366 .dev = {
367 .coherent_dma_mask = 0xffffffff,
368 },
369};
370
371struct platform_device apq8064_device_sdc3 = {
372 .name = "msm_sdcc",
373 .id = 3,
374 .num_resources = ARRAY_SIZE(resources_sdc3),
375 .resource = resources_sdc3,
376 .dev = {
377 .coherent_dma_mask = 0xffffffff,
378 },
379};
380
381struct platform_device apq8064_device_sdc4 = {
382 .name = "msm_sdcc",
383 .id = 4,
384 .num_resources = ARRAY_SIZE(resources_sdc4),
385 .resource = resources_sdc4,
386 .dev = {
387 .coherent_dma_mask = 0xffffffff,
388 },
389};
390
391static struct platform_device *apq8064_sdcc_devices[] __initdata = {
392 &apq8064_device_sdc1,
393 &apq8064_device_sdc2,
394 &apq8064_device_sdc3,
395 &apq8064_device_sdc4,
396};
397
398int __init apq8064_add_sdcc(unsigned int controller,
399 struct mmc_platform_data *plat)
400{
401 struct platform_device *pdev;
402
403 if (!plat)
404 return 0;
405 if (controller < 1 || controller > 4)
406 return -EINVAL;
407
408 pdev = apq8064_sdcc_devices[controller-1];
409 pdev->dev.platform_data = plat;
410 return platform_device_register(pdev);
411}
412
413static struct clk_lookup msm_clocks_8064_dummy[] = {
414 CLK_DUMMY("pll2", PLL2, NULL, 0),
415 CLK_DUMMY("pll8", PLL8, NULL, 0),
416 CLK_DUMMY("pll4", PLL4, NULL, 0),
417
418 CLK_DUMMY("afab_clk", AFAB_CLK, NULL, 0),
419 CLK_DUMMY("afab_a_clk", AFAB_A_CLK, NULL, 0),
420 CLK_DUMMY("cfpb_clk", CFPB_CLK, NULL, 0),
421 CLK_DUMMY("cfpb_a_clk", CFPB_A_CLK, NULL, 0),
422 CLK_DUMMY("dfab_clk", DFAB_CLK, NULL, 0),
423 CLK_DUMMY("dfab_a_clk", DFAB_A_CLK, NULL, 0),
424 CLK_DUMMY("ebi1_clk", EBI1_CLK, NULL, 0),
425 CLK_DUMMY("ebi1_a_clk", EBI1_A_CLK, NULL, 0),
426 CLK_DUMMY("mmfab_clk", MMFAB_CLK, NULL, 0),
427 CLK_DUMMY("mmfab_a_clk", MMFAB_A_CLK, NULL, 0),
428 CLK_DUMMY("mmfpb_clk", MMFPB_CLK, NULL, 0),
429 CLK_DUMMY("mmfpb_a_clk", MMFPB_A_CLK, NULL, 0),
430 CLK_DUMMY("sfab_clk", SFAB_CLK, NULL, 0),
431 CLK_DUMMY("sfab_a_clk", SFAB_A_CLK, NULL, 0),
432 CLK_DUMMY("sfpb_clk", SFPB_CLK, NULL, 0),
433 CLK_DUMMY("sfpb_a_clk", SFPB_A_CLK, NULL, 0),
434
435 CLK_DUMMY("gsbi_uart_clk", GSBI1_UART_CLK, NULL, OFF),
436 CLK_DUMMY("gsbi_uart_clk", GSBI2_UART_CLK, NULL, OFF),
437 CLK_DUMMY("gsbi_uart_clk", GSBI3_UART_CLK,
438 "msm_serial_hsl.0", OFF),
439 CLK_DUMMY("gsbi_uart_clk", GSBI4_UART_CLK, NULL, OFF),
440 CLK_DUMMY("gsbi_uart_clk", GSBI5_UART_CLK, NULL, OFF),
441 CLK_DUMMY("uartdm_clk", GSBI6_UART_CLK, NULL, OFF),
442 CLK_DUMMY("gsbi_uart_clk", GSBI7_UART_CLK, NULL, OFF),
443 CLK_DUMMY("gsbi_uart_clk", GSBI8_UART_CLK, NULL, OFF),
444 CLK_DUMMY("gsbi_uart_clk", GSBI9_UART_CLK, NULL, OFF),
445 CLK_DUMMY("gsbi_uart_clk", GSBI10_UART_CLK, NULL, OFF),
446 CLK_DUMMY("gsbi_uart_clk", GSBI11_UART_CLK, NULL, OFF),
447 CLK_DUMMY("gsbi_uart_clk", GSBI12_UART_CLK, NULL, OFF),
448 CLK_DUMMY("spi_clk", GSBI1_QUP_CLK, NULL, OFF),
449 CLK_DUMMY("gsbi_qup_clk", GSBI2_QUP_CLK, NULL, OFF),
450 CLK_DUMMY("gsbi_qup_clk", GSBI3_QUP_CLK, NULL, OFF),
451 CLK_DUMMY("gsbi_qup_clk", GSBI4_QUP_CLK, NULL, OFF),
Harini Jayaramanc4c58692011-07-19 14:50:10 -0600452 CLK_DUMMY("spi_clk", GSBI5_QUP_CLK, "spi_qsd.0", OFF),
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700453 CLK_DUMMY("gsbi_qup_clk", GSBI6_QUP_CLK, NULL, OFF),
454 CLK_DUMMY("gsbi_qup_clk", GSBI7_QUP_CLK, NULL, OFF),
455 CLK_DUMMY("gsbi_qup_clk", GSBI8_QUP_CLK, NULL, OFF),
456 CLK_DUMMY("gsbi_qup_clk", GSBI9_QUP_CLK, NULL, OFF),
457 CLK_DUMMY("gsbi_qup_clk", GSBI10_QUP_CLK, NULL, OFF),
458 CLK_DUMMY("gsbi_qup_clk", GSBI11_QUP_CLK, NULL, OFF),
459 CLK_DUMMY("gsbi_qup_clk", GSBI12_QUP_CLK, NULL, OFF),
460 CLK_DUMMY("pdm_clk", PDM_CLK, NULL, OFF),
461 CLK_DUMMY("pmem_clk", PMEM_CLK, NULL, OFF),
462 CLK_DUMMY("prng_clk", PRNG_CLK, NULL, OFF),
463 CLK_DUMMY("sdc_clk", SDC1_CLK, NULL, OFF),
464 CLK_DUMMY("sdc_clk", SDC2_CLK, NULL, OFF),
465 CLK_DUMMY("sdc_clk", SDC3_CLK, NULL, OFF),
466 CLK_DUMMY("sdc_clk", SDC4_CLK, NULL, OFF),
467 CLK_DUMMY("sdc_clk", SDC5_CLK, NULL, OFF),
468 CLK_DUMMY("tsif_ref_clk", TSIF_REF_CLK, NULL, OFF),
469 CLK_DUMMY("tssc_clk", TSSC_CLK, NULL, OFF),
470 CLK_DUMMY("usb_hs_clk", USB_HS1_XCVR_CLK, NULL, OFF),
471 CLK_DUMMY("usb_phy_clk", USB_PHY0_CLK, NULL, OFF),
472 CLK_DUMMY("usb_fs_src_clk", USB_FS1_SRC_CLK, NULL, OFF),
473 CLK_DUMMY("usb_fs_clk", USB_FS1_XCVR_CLK, NULL, OFF),
474 CLK_DUMMY("usb_fs_sys_clk", USB_FS1_SYS_CLK, NULL, OFF),
475 CLK_DUMMY("usb_fs_src_clk", USB_FS2_SRC_CLK, NULL, OFF),
476 CLK_DUMMY("usb_fs_clk", USB_FS2_XCVR_CLK, NULL, OFF),
477 CLK_DUMMY("usb_fs_sys_clk", USB_FS2_SYS_CLK, NULL, OFF),
478 CLK_DUMMY("ce_pclk", CE2_CLK, NULL, OFF),
479 CLK_DUMMY("ce_clk", CE1_CORE_CLK, NULL, OFF),
480 CLK_DUMMY("spi_pclk", GSBI1_P_CLK, NULL, OFF),
481 CLK_DUMMY("gsbi_pclk", GSBI2_P_CLK, NULL, OFF),
482 CLK_DUMMY("gsbi_pclk", GSBI3_P_CLK,
483 "msm_serial_hsl.0", OFF),
484 CLK_DUMMY("gsbi_pclk", GSBI4_P_CLK, NULL, OFF),
Harini Jayaramanc4c58692011-07-19 14:50:10 -0600485 CLK_DUMMY("spi_pclk", GSBI5_P_CLK, "spi_qsd.0", OFF),
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -0700486 CLK_DUMMY("uartdm_pclk", GSBI6_P_CLK, NULL, OFF),
487 CLK_DUMMY("gsbi_pclk", GSBI7_P_CLK, NULL, OFF),
488 CLK_DUMMY("gsbi_pclk", GSBI8_P_CLK, NULL, OFF),
489 CLK_DUMMY("gsbi_pclk", GSBI9_P_CLK, NULL, OFF),
490 CLK_DUMMY("gsbi_pclk", GSBI10_P_CLK, NULL, OFF),
491 CLK_DUMMY("gsbi_pclk", GSBI11_P_CLK, NULL, OFF),
492 CLK_DUMMY("gsbi_pclk", GSBI12_P_CLK, NULL, OFF),
493 CLK_DUMMY("gsbi_pclk", GSBI12_P_CLK, NULL, OFF),
494 CLK_DUMMY("tsif_pclk", TSIF_P_CLK, NULL, OFF),
495 CLK_DUMMY("usb_fs_pclk", USB_FS1_P_CLK, NULL, OFF),
496 CLK_DUMMY("usb_fs_pclk", USB_FS2_P_CLK, NULL, OFF),
497 CLK_DUMMY("usb_hs_pclk", USB_HS1_P_CLK, NULL, OFF),
498 CLK_DUMMY("sdc_pclk", SDC1_P_CLK, NULL, OFF),
499 CLK_DUMMY("sdc_pclk", SDC2_P_CLK, NULL, OFF),
500 CLK_DUMMY("sdc_pclk", SDC3_P_CLK, NULL, OFF),
501 CLK_DUMMY("sdc_pclk", SDC4_P_CLK, NULL, OFF),
502 CLK_DUMMY("sdc_pclk", SDC5_P_CLK, NULL, OFF),
503 CLK_DUMMY("adm_clk", ADM0_CLK, NULL, OFF),
504 CLK_DUMMY("adm_pclk", ADM0_P_CLK, NULL, OFF),
505 CLK_DUMMY("pmic_arb_pclk", PMIC_ARB0_P_CLK, NULL, OFF),
506 CLK_DUMMY("pmic_arb_pclk", PMIC_ARB1_P_CLK, NULL, OFF),
507 CLK_DUMMY("pmic_ssbi2", PMIC_SSBI2_CLK, NULL, OFF),
508 CLK_DUMMY("rpm_msg_ram_pclk", RPM_MSG_RAM_P_CLK, NULL, OFF),
509 CLK_DUMMY("amp_clk", AMP_CLK, NULL, OFF),
510 CLK_DUMMY("cam_clk", CAM0_CLK, NULL, OFF),
511 CLK_DUMMY("cam_clk", CAM1_CLK, NULL, OFF),
512 CLK_DUMMY("csi_src_clk", CSI0_SRC_CLK, NULL, OFF),
513 CLK_DUMMY("csi_src_clk", CSI1_SRC_CLK, NULL, OFF),
514 CLK_DUMMY("csi_clk", CSI0_CLK, NULL, OFF),
515 CLK_DUMMY("csi_clk", CSI1_CLK, NULL, OFF),
516 CLK_DUMMY("csi_pix_clk", CSI_PIX_CLK, NULL, OFF),
517 CLK_DUMMY("csi_rdi_clk", CSI_RDI_CLK, NULL, OFF),
518 CLK_DUMMY("csiphy_timer_src_clk", CSIPHY_TIMER_SRC_CLK, NULL, OFF),
519 CLK_DUMMY("csi0phy_timer_clk", CSIPHY0_TIMER_CLK, NULL, OFF),
520 CLK_DUMMY("csi1phy_timer_clk", CSIPHY1_TIMER_CLK, NULL, OFF),
521 CLK_DUMMY("dsi_byte_div_clk", DSI1_BYTE_CLK, NULL, OFF),
522 CLK_DUMMY("dsi_byte_div_clk", DSI2_BYTE_CLK, NULL, OFF),
523 CLK_DUMMY("dsi_esc_clk", DSI1_ESC_CLK, NULL, OFF),
524 CLK_DUMMY("dsi_esc_clk", DSI2_ESC_CLK, NULL, OFF),
525 CLK_DUMMY("gfx2d0_clk", GFX2D0_CLK, NULL, OFF),
526 CLK_DUMMY("gfx2d1_clk", GFX2D1_CLK, NULL, OFF),
527 CLK_DUMMY("gfx3d_clk", GFX3D_CLK, NULL, OFF),
528 CLK_DUMMY("ijpeg_clk", IJPEG_CLK, NULL, OFF),
529 CLK_DUMMY("imem_clk", IMEM_CLK, NULL, OFF),
530 CLK_DUMMY("jpegd_clk", JPEGD_CLK, NULL, OFF),
531 CLK_DUMMY("mdp_clk", MDP_CLK, NULL, OFF),
532 CLK_DUMMY("mdp_vsync_clk", MDP_VSYNC_CLK, NULL, OFF),
533 CLK_DUMMY("lut_mdp", LUT_MDP_CLK, NULL, OFF),
534 CLK_DUMMY("rot_clk", ROT_CLK, NULL, OFF),
535 CLK_DUMMY("tv_src_clk", TV_SRC_CLK, NULL, OFF),
536 CLK_DUMMY("tv_enc_clk", TV_ENC_CLK, NULL, OFF),
537 CLK_DUMMY("tv_dac_clk", TV_DAC_CLK, NULL, OFF),
538 CLK_DUMMY("vcodec_clk", VCODEC_CLK, NULL, OFF),
539 CLK_DUMMY("mdp_tv_clk", MDP_TV_CLK, NULL, OFF),
540 CLK_DUMMY("hdmi_clk", HDMI_TV_CLK, NULL, OFF),
541 CLK_DUMMY("hdmi_app_clk", HDMI_APP_CLK, NULL, OFF),
542 CLK_DUMMY("vpe_clk", VPE_CLK, NULL, OFF),
543 CLK_DUMMY("vfe_clk", VFE_CLK, NULL, OFF),
544 CLK_DUMMY("csi_vfe_clk", CSI0_VFE_CLK, NULL, OFF),
545 CLK_DUMMY("vfe_axi_clk", VFE_AXI_CLK, NULL, OFF),
546 CLK_DUMMY("ijpeg_axi_clk", IJPEG_AXI_CLK, NULL, OFF),
547 CLK_DUMMY("mdp_axi_clk", MDP_AXI_CLK, NULL, OFF),
548 CLK_DUMMY("rot_axi_clk", ROT_AXI_CLK, NULL, OFF),
549 CLK_DUMMY("vcodec_axi_clk", VCODEC_AXI_CLK, NULL, OFF),
550 CLK_DUMMY("vcodec_axi_a_clk", VCODEC_AXI_A_CLK, NULL, OFF),
551 CLK_DUMMY("vcodec_axi_b_clk", VCODEC_AXI_B_CLK, NULL, OFF),
552 CLK_DUMMY("vpe_axi_clk", VPE_AXI_CLK, NULL, OFF),
553 CLK_DUMMY("amp_pclk", AMP_P_CLK, NULL, OFF),
554 CLK_DUMMY("csi_pclk", CSI0_P_CLK, NULL, OFF),
555 CLK_DUMMY("dsi_m_pclk", DSI1_M_P_CLK, NULL, OFF),
556 CLK_DUMMY("dsi_s_pclk", DSI1_S_P_CLK, NULL, OFF),
557 CLK_DUMMY("dsi_m_pclk", DSI2_M_P_CLK, NULL, OFF),
558 CLK_DUMMY("dsi_s_pclk", DSI2_S_P_CLK, NULL, OFF),
559 CLK_DUMMY("gfx2d0_pclk", GFX2D0_P_CLK, NULL, OFF),
560 CLK_DUMMY("gfx2d1_pclk", GFX2D1_P_CLK, NULL, OFF),
561 CLK_DUMMY("gfx3d_pclk", GFX3D_P_CLK, NULL, OFF),
562 CLK_DUMMY("hdmi_m_pclk", HDMI_M_P_CLK, NULL, OFF),
563 CLK_DUMMY("hdmi_s_pclk", HDMI_S_P_CLK, NULL, OFF),
564 CLK_DUMMY("ijpeg_pclk", IJPEG_P_CLK, NULL, OFF),
565 CLK_DUMMY("jpegd_pclk", JPEGD_P_CLK, NULL, OFF),
566 CLK_DUMMY("imem_pclk", IMEM_P_CLK, NULL, OFF),
567 CLK_DUMMY("mdp_pclk", MDP_P_CLK, NULL, OFF),
568 CLK_DUMMY("smmu_pclk", SMMU_P_CLK, NULL, OFF),
569 CLK_DUMMY("rotator_pclk", ROT_P_CLK, NULL, OFF),
570 CLK_DUMMY("tv_enc_pclk", TV_ENC_P_CLK, NULL, OFF),
571 CLK_DUMMY("vcodec_pclk", VCODEC_P_CLK, NULL, OFF),
572 CLK_DUMMY("vfe_pclk", VFE_P_CLK, NULL, OFF),
573 CLK_DUMMY("vpe_pclk", VPE_P_CLK, NULL, OFF),
574 CLK_DUMMY("mi2s_osr_clk", MI2S_OSR_CLK, NULL, OFF),
575 CLK_DUMMY("mi2s_bit_clk", MI2S_BIT_CLK, NULL, OFF),
576 CLK_DUMMY("i2s_mic_osr_clk", CODEC_I2S_MIC_OSR_CLK, NULL, OFF),
577 CLK_DUMMY("i2s_mic_bit_clk", CODEC_I2S_MIC_BIT_CLK, NULL, OFF),
578 CLK_DUMMY("i2s_mic_osr_clk", SPARE_I2S_MIC_OSR_CLK, NULL, OFF),
579 CLK_DUMMY("i2s_mic_bit_clk", SPARE_I2S_MIC_BIT_CLK, NULL, OFF),
580 CLK_DUMMY("i2s_spkr_osr_clk", CODEC_I2S_SPKR_OSR_CLK, NULL, OFF),
581 CLK_DUMMY("i2s_spkr_bit_clk", CODEC_I2S_SPKR_BIT_CLK, NULL, OFF),
582 CLK_DUMMY("i2s_spkr_osr_clk", SPARE_I2S_SPKR_OSR_CLK, NULL, OFF),
583 CLK_DUMMY("i2s_spkr_bit_clk", SPARE_I2S_SPKR_BIT_CLK, NULL, OFF),
584 CLK_DUMMY("pcm_clk", PCM_CLK, NULL, OFF),
585 CLK_DUMMY("iommu_clk", JPEGD_AXI_CLK, NULL, 0),
586 CLK_DUMMY("iommu_clk", VFE_AXI_CLK, NULL, 0),
587 CLK_DUMMY("iommu_clk", VCODEC_AXI_CLK, NULL, 0),
588 CLK_DUMMY("iommu_clk", GFX3D_CLK, NULL, 0),
589 CLK_DUMMY("iommu_clk", GFX2D0_CLK, NULL, 0),
590 CLK_DUMMY("iommu_clk", GFX2D1_CLK, NULL, 0),
591
592 CLK_DUMMY("dfab_dsps_clk", DFAB_DSPS_CLK, NULL, 0),
593 CLK_DUMMY("dfab_usb_hs_clk", DFAB_USB_HS_CLK, NULL, 0),
594 CLK_DUMMY("dfab_sdc_clk", DFAB_SDC1_CLK, NULL, 0),
595 CLK_DUMMY("dfab_sdc_clk", DFAB_SDC2_CLK, NULL, 0),
596 CLK_DUMMY("dfab_sdc_clk", DFAB_SDC3_CLK, NULL, 0),
597 CLK_DUMMY("dfab_sdc_clk", DFAB_SDC4_CLK, NULL, 0),
598 CLK_DUMMY("dfab_sdc_clk", DFAB_SDC5_CLK, NULL, 0),
599 CLK_DUMMY("dfab_clk", DFAB_CLK, NULL, 0),
600 CLK_DUMMY("dma_bam_pclk", DMA_BAM_P_CLK, NULL, 0),
601};
602
603unsigned msm_num_clocks_8064_dummy = ARRAY_SIZE(msm_clocks_8064_dummy);