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