Manu Gautam | 5143b25 | 2012-01-05 19:25:23 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved. |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 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> |
Yan He | 06913ce | 2011-08-26 16:33:46 -0700 | [diff] [blame] | 22 | #include <mach/usbdiag.h> |
| 23 | #include <mach/msm_sps.h> |
Jeff Ohlstein | 905f1ce | 2011-09-07 18:50:18 -0700 | [diff] [blame] | 24 | #include <mach/dma.h> |
Bharath Ramachandramurthy | b8e797f | 2011-11-30 12:08:42 -0800 | [diff] [blame] | 25 | #include <sound/msm-dai-q6.h> |
| 26 | #include <sound/apr_audio.h> |
Gagan Mac | 8a7a5d3 | 2011-11-11 16:43:06 -0700 | [diff] [blame^] | 27 | #include <mach/msm_bus_board.h> |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 28 | #include "clock.h" |
| 29 | #include "devices.h" |
Jeff Ohlstein | 7e66855 | 2011-10-06 16:17:25 -0700 | [diff] [blame] | 30 | #include "msm_watchdog.h" |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 31 | |
| 32 | /* Address of GSBI blocks */ |
Stepan Moskovchenko | 2701a44 | 2011-08-19 13:47:22 -0700 | [diff] [blame] | 33 | #define MSM_GSBI1_PHYS 0x12440000 |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 34 | #define MSM_GSBI3_PHYS 0x16200000 |
Harini Jayaraman | c4c5869 | 2011-07-19 14:50:10 -0600 | [diff] [blame] | 35 | #define MSM_GSBI4_PHYS 0x16300000 |
| 36 | #define MSM_GSBI5_PHYS 0x1A200000 |
| 37 | #define MSM_GSBI6_PHYS 0x16500000 |
| 38 | #define MSM_GSBI7_PHYS 0x16600000 |
| 39 | |
Kenneth Heitke | 748593a | 2011-07-15 15:45:11 -0600 | [diff] [blame] | 40 | /* GSBI UART devices */ |
Stepan Moskovchenko | 2701a44 | 2011-08-19 13:47:22 -0700 | [diff] [blame] | 41 | #define MSM_UART1DM_PHYS (MSM_GSBI1_PHYS + 0x10000) |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 42 | #define MSM_UART3DM_PHYS (MSM_GSBI3_PHYS + 0x40000) |
| 43 | |
Harini Jayaraman | c4c5869 | 2011-07-19 14:50:10 -0600 | [diff] [blame] | 44 | /* GSBI QUP devices */ |
| 45 | #define MSM_GSBI3_QUP_PHYS (MSM_GSBI3_PHYS + 0x80000) |
| 46 | #define MSM_GSBI4_QUP_PHYS (MSM_GSBI4_PHYS + 0x80000) |
| 47 | #define MSM_GSBI5_QUP_PHYS (MSM_GSBI5_PHYS + 0x80000) |
| 48 | #define MSM_GSBI6_QUP_PHYS (MSM_GSBI6_PHYS + 0x80000) |
| 49 | #define MSM_GSBI7_QUP_PHYS (MSM_GSBI7_PHYS + 0x80000) |
| 50 | #define MSM_QUP_SIZE SZ_4K |
| 51 | |
Kenneth Heitke | 36920d3 | 2011-07-20 16:44:30 -0600 | [diff] [blame] | 52 | /* Address of SSBI CMD */ |
| 53 | #define MSM_PMIC1_SSBI_CMD_PHYS 0x00500000 |
| 54 | #define MSM_PMIC2_SSBI_CMD_PHYS 0x00C00000 |
| 55 | #define MSM_PMIC_SSBI_SIZE SZ_4K |
Harini Jayaraman | c4c5869 | 2011-07-19 14:50:10 -0600 | [diff] [blame] | 56 | |
Hemant Kumar | caa0909 | 2011-07-30 00:26:33 -0700 | [diff] [blame] | 57 | /* Address of HS USBOTG1 */ |
| 58 | #define MSM_HSUSB_PHYS 0x12500000 |
| 59 | #define MSM_HSUSB_SIZE SZ_4K |
| 60 | |
Jeff Ohlstein | 7e66855 | 2011-10-06 16:17:25 -0700 | [diff] [blame] | 61 | static struct msm_watchdog_pdata msm_watchdog_pdata = { |
| 62 | .pet_time = 10000, |
| 63 | .bark_time = 11000, |
| 64 | .has_secure = true, |
| 65 | }; |
| 66 | |
| 67 | struct platform_device msm8064_device_watchdog = { |
| 68 | .name = "msm_watchdog", |
| 69 | .id = -1, |
| 70 | .dev = { |
| 71 | .platform_data = &msm_watchdog_pdata, |
| 72 | }, |
| 73 | }; |
| 74 | |
Joel King | 0581896d | 2011-07-19 16:43:28 -0700 | [diff] [blame] | 75 | static struct resource msm_dmov_resource[] = { |
| 76 | { |
Jeff Ohlstein | 4af7269 | 2011-11-07 15:59:17 -0800 | [diff] [blame] | 77 | .start = ADM_0_SCSS_1_IRQ, |
Joel King | 0581896d | 2011-07-19 16:43:28 -0700 | [diff] [blame] | 78 | .flags = IORESOURCE_IRQ, |
| 79 | }, |
Jeff Ohlstein | 905f1ce | 2011-09-07 18:50:18 -0700 | [diff] [blame] | 80 | { |
Jeff Ohlstein | 4af7269 | 2011-11-07 15:59:17 -0800 | [diff] [blame] | 81 | .start = 0x18320000, |
| 82 | .end = 0x18320000 + SZ_1M - 1, |
Jeff Ohlstein | 905f1ce | 2011-09-07 18:50:18 -0700 | [diff] [blame] | 83 | .flags = IORESOURCE_MEM, |
| 84 | }, |
| 85 | }; |
| 86 | |
| 87 | static struct msm_dmov_pdata msm_dmov_pdata = { |
Jeff Ohlstein | 4af7269 | 2011-11-07 15:59:17 -0800 | [diff] [blame] | 88 | .sd = 1, |
Jeff Ohlstein | 905f1ce | 2011-09-07 18:50:18 -0700 | [diff] [blame] | 89 | .sd_size = 0x800, |
Joel King | 0581896d | 2011-07-19 16:43:28 -0700 | [diff] [blame] | 90 | }; |
| 91 | |
Stepan Moskovchenko | df13d34 | 2011-08-03 19:01:25 -0700 | [diff] [blame] | 92 | struct platform_device apq8064_device_dmov = { |
Joel King | 0581896d | 2011-07-19 16:43:28 -0700 | [diff] [blame] | 93 | .name = "msm_dmov", |
| 94 | .id = -1, |
| 95 | .resource = msm_dmov_resource, |
| 96 | .num_resources = ARRAY_SIZE(msm_dmov_resource), |
Jeff Ohlstein | 905f1ce | 2011-09-07 18:50:18 -0700 | [diff] [blame] | 97 | .dev = { |
| 98 | .platform_data = &msm_dmov_pdata, |
| 99 | }, |
Joel King | 0581896d | 2011-07-19 16:43:28 -0700 | [diff] [blame] | 100 | }; |
| 101 | |
Stepan Moskovchenko | 2701a44 | 2011-08-19 13:47:22 -0700 | [diff] [blame] | 102 | static struct resource resources_uart_gsbi1[] = { |
| 103 | { |
| 104 | .start = APQ8064_GSBI1_UARTDM_IRQ, |
| 105 | .end = APQ8064_GSBI1_UARTDM_IRQ, |
| 106 | .flags = IORESOURCE_IRQ, |
| 107 | }, |
| 108 | { |
| 109 | .start = MSM_UART1DM_PHYS, |
| 110 | .end = MSM_UART1DM_PHYS + PAGE_SIZE - 1, |
| 111 | .name = "uartdm_resource", |
| 112 | .flags = IORESOURCE_MEM, |
| 113 | }, |
| 114 | { |
| 115 | .start = MSM_GSBI1_PHYS, |
| 116 | .end = MSM_GSBI1_PHYS + PAGE_SIZE - 1, |
| 117 | .name = "gsbi_resource", |
| 118 | .flags = IORESOURCE_MEM, |
| 119 | }, |
| 120 | }; |
| 121 | |
| 122 | struct platform_device apq8064_device_uart_gsbi1 = { |
| 123 | .name = "msm_serial_hsl", |
| 124 | .id = 0, |
| 125 | .num_resources = ARRAY_SIZE(resources_uart_gsbi1), |
| 126 | .resource = resources_uart_gsbi1, |
| 127 | }; |
| 128 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 129 | static struct resource resources_uart_gsbi3[] = { |
| 130 | { |
| 131 | .start = GSBI3_UARTDM_IRQ, |
| 132 | .end = GSBI3_UARTDM_IRQ, |
| 133 | .flags = IORESOURCE_IRQ, |
| 134 | }, |
| 135 | { |
| 136 | .start = MSM_UART3DM_PHYS, |
| 137 | .end = MSM_UART3DM_PHYS + PAGE_SIZE - 1, |
| 138 | .name = "uartdm_resource", |
| 139 | .flags = IORESOURCE_MEM, |
| 140 | }, |
| 141 | { |
| 142 | .start = MSM_GSBI3_PHYS, |
| 143 | .end = MSM_GSBI3_PHYS + PAGE_SIZE - 1, |
| 144 | .name = "gsbi_resource", |
| 145 | .flags = IORESOURCE_MEM, |
| 146 | }, |
| 147 | }; |
| 148 | |
| 149 | struct platform_device apq8064_device_uart_gsbi3 = { |
| 150 | .name = "msm_serial_hsl", |
| 151 | .id = 0, |
| 152 | .num_resources = ARRAY_SIZE(resources_uart_gsbi3), |
| 153 | .resource = resources_uart_gsbi3, |
| 154 | }; |
| 155 | |
Kenneth Heitke | 748593a | 2011-07-15 15:45:11 -0600 | [diff] [blame] | 156 | static struct resource resources_qup_i2c_gsbi4[] = { |
| 157 | { |
| 158 | .name = "gsbi_qup_i2c_addr", |
| 159 | .start = MSM_GSBI4_PHYS, |
Harini Jayaraman | e1554a9 | 2011-09-15 14:43:02 -0600 | [diff] [blame] | 160 | .end = MSM_GSBI4_PHYS + 4 - 1, |
Kenneth Heitke | 748593a | 2011-07-15 15:45:11 -0600 | [diff] [blame] | 161 | .flags = IORESOURCE_MEM, |
| 162 | }, |
| 163 | { |
| 164 | .name = "qup_phys_addr", |
| 165 | .start = MSM_GSBI4_QUP_PHYS, |
Harini Jayaraman | e1554a9 | 2011-09-15 14:43:02 -0600 | [diff] [blame] | 166 | .end = MSM_GSBI4_QUP_PHYS + MSM_QUP_SIZE - 1, |
Kenneth Heitke | 748593a | 2011-07-15 15:45:11 -0600 | [diff] [blame] | 167 | .flags = IORESOURCE_MEM, |
| 168 | }, |
| 169 | { |
| 170 | .name = "qup_err_intr", |
| 171 | .start = GSBI4_QUP_IRQ, |
| 172 | .end = GSBI4_QUP_IRQ, |
| 173 | .flags = IORESOURCE_IRQ, |
| 174 | }, |
| 175 | }; |
| 176 | |
| 177 | struct platform_device apq8064_device_qup_i2c_gsbi4 = { |
| 178 | .name = "qup_i2c", |
| 179 | .id = 4, |
| 180 | .num_resources = ARRAY_SIZE(resources_qup_i2c_gsbi4), |
| 181 | .resource = resources_qup_i2c_gsbi4, |
| 182 | }; |
| 183 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 184 | static struct resource resources_qup_spi_gsbi5[] = { |
| 185 | { |
| 186 | .name = "spi_base", |
| 187 | .start = MSM_GSBI5_QUP_PHYS, |
| 188 | .end = MSM_GSBI5_QUP_PHYS + SZ_4K - 1, |
| 189 | .flags = IORESOURCE_MEM, |
| 190 | }, |
| 191 | { |
| 192 | .name = "gsbi_base", |
| 193 | .start = MSM_GSBI5_PHYS, |
| 194 | .end = MSM_GSBI5_PHYS + 4 - 1, |
| 195 | .flags = IORESOURCE_MEM, |
| 196 | }, |
| 197 | { |
| 198 | .name = "spi_irq_in", |
| 199 | .start = GSBI5_QUP_IRQ, |
| 200 | .end = GSBI5_QUP_IRQ, |
| 201 | .flags = IORESOURCE_IRQ, |
| 202 | }, |
| 203 | }; |
| 204 | |
| 205 | struct platform_device apq8064_device_qup_spi_gsbi5 = { |
| 206 | .name = "spi_qsd", |
| 207 | .id = 0, |
| 208 | .num_resources = ARRAY_SIZE(resources_qup_spi_gsbi5), |
| 209 | .resource = resources_qup_spi_gsbi5, |
| 210 | }; |
| 211 | |
Bharath Ramachandramurthy | b8e797f | 2011-11-30 12:08:42 -0800 | [diff] [blame] | 212 | struct platform_device apq_pcm = { |
| 213 | .name = "msm-pcm-dsp", |
| 214 | .id = -1, |
| 215 | }; |
| 216 | |
| 217 | struct platform_device apq_pcm_routing = { |
| 218 | .name = "msm-pcm-routing", |
| 219 | .id = -1, |
| 220 | }; |
| 221 | |
| 222 | struct platform_device apq_cpudai0 = { |
| 223 | .name = "msm-dai-q6", |
| 224 | .id = 0x4000, |
| 225 | }; |
| 226 | |
| 227 | struct platform_device apq_cpudai1 = { |
| 228 | .name = "msm-dai-q6", |
| 229 | .id = 0x4001, |
| 230 | }; |
| 231 | |
| 232 | struct platform_device apq_cpudai_hdmi_rx = { |
| 233 | .name = "msm-dai-q6", |
| 234 | .id = 8, |
| 235 | }; |
| 236 | |
| 237 | struct platform_device apq_cpudai_bt_rx = { |
| 238 | .name = "msm-dai-q6", |
| 239 | .id = 0x3000, |
| 240 | }; |
| 241 | |
| 242 | struct platform_device apq_cpudai_bt_tx = { |
| 243 | .name = "msm-dai-q6", |
| 244 | .id = 0x3001, |
| 245 | }; |
| 246 | |
| 247 | struct platform_device apq_cpudai_fm_rx = { |
| 248 | .name = "msm-dai-q6", |
| 249 | .id = 0x3004, |
| 250 | }; |
| 251 | |
| 252 | struct platform_device apq_cpudai_fm_tx = { |
| 253 | .name = "msm-dai-q6", |
| 254 | .id = 0x3005, |
| 255 | }; |
| 256 | |
| 257 | /* |
| 258 | * Machine specific data for AUX PCM Interface |
| 259 | * which the driver will be unware of. |
| 260 | */ |
| 261 | struct msm_dai_auxpcm_pdata apq_auxpcm_rx_pdata = { |
| 262 | .clk = "pcm_clk", |
| 263 | .mode = AFE_PCM_CFG_MODE_PCM, |
| 264 | .sync = AFE_PCM_CFG_SYNC_INT, |
| 265 | .frame = AFE_PCM_CFG_FRM_256BPF, |
| 266 | .quant = AFE_PCM_CFG_QUANT_LINEAR_NOPAD, |
| 267 | .slot = 0, |
| 268 | .data = AFE_PCM_CFG_CDATAOE_MASTER, |
| 269 | .pcm_clk_rate = 2048000, |
| 270 | }; |
| 271 | |
| 272 | struct platform_device apq_cpudai_auxpcm_rx = { |
| 273 | .name = "msm-dai-q6", |
| 274 | .id = 2, |
| 275 | .dev = { |
| 276 | .platform_data = &apq_auxpcm_rx_pdata, |
| 277 | }, |
| 278 | }; |
| 279 | |
| 280 | struct platform_device apq_cpudai_auxpcm_tx = { |
| 281 | .name = "msm-dai-q6", |
| 282 | .id = 3, |
| 283 | }; |
| 284 | |
| 285 | struct platform_device apq_cpu_fe = { |
| 286 | .name = "msm-dai-fe", |
| 287 | .id = -1, |
| 288 | }; |
| 289 | |
| 290 | struct platform_device apq_stub_codec = { |
| 291 | .name = "msm-stub-codec", |
| 292 | .id = 1, |
| 293 | }; |
| 294 | |
| 295 | struct platform_device apq_voice = { |
| 296 | .name = "msm-pcm-voice", |
| 297 | .id = -1, |
| 298 | }; |
| 299 | |
| 300 | struct platform_device apq_voip = { |
| 301 | .name = "msm-voip-dsp", |
| 302 | .id = -1, |
| 303 | }; |
| 304 | |
| 305 | struct platform_device apq_lpa_pcm = { |
| 306 | .name = "msm-pcm-lpa", |
| 307 | .id = -1, |
| 308 | }; |
| 309 | |
| 310 | struct platform_device apq_pcm_hostless = { |
| 311 | .name = "msm-pcm-hostless", |
| 312 | .id = -1, |
| 313 | }; |
| 314 | |
| 315 | struct platform_device apq_cpudai_afe_01_rx = { |
| 316 | .name = "msm-dai-q6", |
| 317 | .id = 0xE0, |
| 318 | }; |
| 319 | |
| 320 | struct platform_device apq_cpudai_afe_01_tx = { |
| 321 | .name = "msm-dai-q6", |
| 322 | .id = 0xF0, |
| 323 | }; |
| 324 | |
| 325 | struct platform_device apq_cpudai_afe_02_rx = { |
| 326 | .name = "msm-dai-q6", |
| 327 | .id = 0xF1, |
| 328 | }; |
| 329 | |
| 330 | struct platform_device apq_cpudai_afe_02_tx = { |
| 331 | .name = "msm-dai-q6", |
| 332 | .id = 0xE1, |
| 333 | }; |
| 334 | |
| 335 | struct platform_device apq_pcm_afe = { |
| 336 | .name = "msm-pcm-afe", |
| 337 | .id = -1, |
| 338 | }; |
| 339 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 340 | static struct resource resources_ssbi_pmic1[] = { |
| 341 | { |
| 342 | .start = MSM_PMIC1_SSBI_CMD_PHYS, |
| 343 | .end = MSM_PMIC1_SSBI_CMD_PHYS + MSM_PMIC_SSBI_SIZE - 1, |
| 344 | .flags = IORESOURCE_MEM, |
| 345 | }, |
| 346 | }; |
| 347 | |
Sagar Dharia | 8bdcdaf | 2011-09-16 16:01:15 -0600 | [diff] [blame] | 348 | #define LPASS_SLIMBUS_PHYS 0x28080000 |
| 349 | #define LPASS_SLIMBUS_BAM_PHYS 0x28084000 |
| 350 | /* Board info for the slimbus slave device */ |
| 351 | static struct resource slimbus_res[] = { |
| 352 | { |
| 353 | .start = LPASS_SLIMBUS_PHYS, |
| 354 | .end = LPASS_SLIMBUS_PHYS + 8191, |
| 355 | .flags = IORESOURCE_MEM, |
| 356 | .name = "slimbus_physical", |
| 357 | }, |
| 358 | { |
| 359 | .start = LPASS_SLIMBUS_BAM_PHYS, |
| 360 | .end = LPASS_SLIMBUS_BAM_PHYS + 8191, |
| 361 | .flags = IORESOURCE_MEM, |
| 362 | .name = "slimbus_bam_physical", |
| 363 | }, |
| 364 | { |
| 365 | .start = SLIMBUS0_CORE_EE1_IRQ, |
| 366 | .end = SLIMBUS0_CORE_EE1_IRQ, |
| 367 | .flags = IORESOURCE_IRQ, |
| 368 | .name = "slimbus_irq", |
| 369 | }, |
| 370 | { |
| 371 | .start = SLIMBUS0_BAM_EE1_IRQ, |
| 372 | .end = SLIMBUS0_BAM_EE1_IRQ, |
| 373 | .flags = IORESOURCE_IRQ, |
| 374 | .name = "slimbus_bam_irq", |
| 375 | }, |
| 376 | }; |
| 377 | |
| 378 | struct platform_device apq8064_slim_ctrl = { |
| 379 | .name = "msm_slim_ctrl", |
| 380 | .id = 1, |
| 381 | .num_resources = ARRAY_SIZE(slimbus_res), |
| 382 | .resource = slimbus_res, |
| 383 | .dev = { |
| 384 | .coherent_dma_mask = 0xffffffffULL, |
| 385 | }, |
| 386 | }; |
| 387 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 388 | struct platform_device apq8064_device_ssbi_pmic1 = { |
| 389 | .name = "msm_ssbi", |
| 390 | .id = 0, |
| 391 | .resource = resources_ssbi_pmic1, |
| 392 | .num_resources = ARRAY_SIZE(resources_ssbi_pmic1), |
| 393 | }; |
| 394 | |
| 395 | static struct resource resources_ssbi_pmic2[] = { |
| 396 | { |
| 397 | .start = MSM_PMIC2_SSBI_CMD_PHYS, |
| 398 | .end = MSM_PMIC2_SSBI_CMD_PHYS + MSM_PMIC_SSBI_SIZE - 1, |
| 399 | .flags = IORESOURCE_MEM, |
| 400 | }, |
| 401 | }; |
| 402 | |
| 403 | struct platform_device apq8064_device_ssbi_pmic2 = { |
| 404 | .name = "msm_ssbi", |
| 405 | .id = 1, |
| 406 | .resource = resources_ssbi_pmic2, |
| 407 | .num_resources = ARRAY_SIZE(resources_ssbi_pmic2), |
| 408 | }; |
| 409 | |
| 410 | static struct resource resources_otg[] = { |
| 411 | { |
| 412 | .start = MSM_HSUSB_PHYS, |
| 413 | .end = MSM_HSUSB_PHYS + MSM_HSUSB_SIZE - 1, |
| 414 | .flags = IORESOURCE_MEM, |
| 415 | }, |
| 416 | { |
| 417 | .start = USB1_HS_IRQ, |
| 418 | .end = USB1_HS_IRQ, |
| 419 | .flags = IORESOURCE_IRQ, |
| 420 | }, |
| 421 | }; |
| 422 | |
Stepan Moskovchenko | 14aa649 | 2011-08-08 15:15:01 -0700 | [diff] [blame] | 423 | struct platform_device apq8064_device_otg = { |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 424 | .name = "msm_otg", |
| 425 | .id = -1, |
| 426 | .num_resources = ARRAY_SIZE(resources_otg), |
| 427 | .resource = resources_otg, |
| 428 | .dev = { |
| 429 | .coherent_dma_mask = 0xffffffff, |
| 430 | }, |
| 431 | }; |
| 432 | |
| 433 | static struct resource resources_hsusb[] = { |
| 434 | { |
| 435 | .start = MSM_HSUSB_PHYS, |
| 436 | .end = MSM_HSUSB_PHYS + MSM_HSUSB_SIZE - 1, |
| 437 | .flags = IORESOURCE_MEM, |
| 438 | }, |
| 439 | { |
| 440 | .start = USB1_HS_IRQ, |
| 441 | .end = USB1_HS_IRQ, |
| 442 | .flags = IORESOURCE_IRQ, |
| 443 | }, |
| 444 | }; |
| 445 | |
Stepan Moskovchenko | 14aa649 | 2011-08-08 15:15:01 -0700 | [diff] [blame] | 446 | struct platform_device apq8064_device_gadget_peripheral = { |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 447 | .name = "msm_hsusb", |
| 448 | .id = -1, |
| 449 | .num_resources = ARRAY_SIZE(resources_hsusb), |
| 450 | .resource = resources_hsusb, |
| 451 | .dev = { |
| 452 | .coherent_dma_mask = 0xffffffff, |
| 453 | }, |
| 454 | }; |
| 455 | |
| 456 | #define MSM_SDC1_BASE 0x12400000 |
| 457 | #define MSM_SDC1_DML_BASE (MSM_SDC1_BASE + 0x800) |
| 458 | #define MSM_SDC1_BAM_BASE (MSM_SDC1_BASE + 0x2000) |
| 459 | #define MSM_SDC2_BASE 0x12140000 |
| 460 | #define MSM_SDC2_DML_BASE (MSM_SDC2_BASE + 0x800) |
| 461 | #define MSM_SDC2_BAM_BASE (MSM_SDC2_BASE + 0x2000) |
| 462 | #define MSM_SDC3_BASE 0x12180000 |
| 463 | #define MSM_SDC3_DML_BASE (MSM_SDC3_BASE + 0x800) |
| 464 | #define MSM_SDC3_BAM_BASE (MSM_SDC3_BASE + 0x2000) |
| 465 | #define MSM_SDC4_BASE 0x121C0000 |
| 466 | #define MSM_SDC4_DML_BASE (MSM_SDC4_BASE + 0x800) |
| 467 | #define MSM_SDC4_BAM_BASE (MSM_SDC4_BASE + 0x2000) |
| 468 | |
| 469 | static struct resource resources_sdc1[] = { |
| 470 | { |
| 471 | .name = "core_mem", |
| 472 | .flags = IORESOURCE_MEM, |
| 473 | .start = MSM_SDC1_BASE, |
| 474 | .end = MSM_SDC1_DML_BASE - 1, |
| 475 | }, |
| 476 | { |
| 477 | .name = "core_irq", |
| 478 | .flags = IORESOURCE_IRQ, |
| 479 | .start = SDC1_IRQ_0, |
| 480 | .end = SDC1_IRQ_0 |
| 481 | }, |
| 482 | #ifdef CONFIG_MMC_MSM_SPS_SUPPORT |
| 483 | { |
| 484 | .name = "sdcc_dml_addr", |
| 485 | .start = MSM_SDC1_DML_BASE, |
| 486 | .end = MSM_SDC1_BAM_BASE - 1, |
| 487 | .flags = IORESOURCE_MEM, |
| 488 | }, |
| 489 | { |
| 490 | .name = "sdcc_bam_addr", |
| 491 | .start = MSM_SDC1_BAM_BASE, |
| 492 | .end = MSM_SDC1_BAM_BASE + (2 * SZ_4K) - 1, |
| 493 | .flags = IORESOURCE_MEM, |
| 494 | }, |
| 495 | { |
| 496 | .name = "sdcc_bam_irq", |
| 497 | .start = SDC1_BAM_IRQ, |
| 498 | .end = SDC1_BAM_IRQ, |
| 499 | .flags = IORESOURCE_IRQ, |
| 500 | }, |
| 501 | #endif |
| 502 | }; |
| 503 | |
| 504 | static struct resource resources_sdc2[] = { |
| 505 | { |
| 506 | .name = "core_mem", |
| 507 | .flags = IORESOURCE_MEM, |
| 508 | .start = MSM_SDC2_BASE, |
| 509 | .end = MSM_SDC2_DML_BASE - 1, |
| 510 | }, |
| 511 | { |
| 512 | .name = "core_irq", |
| 513 | .flags = IORESOURCE_IRQ, |
| 514 | .start = SDC2_IRQ_0, |
| 515 | .end = SDC2_IRQ_0 |
| 516 | }, |
| 517 | #ifdef CONFIG_MMC_MSM_SPS_SUPPORT |
| 518 | { |
| 519 | .name = "sdcc_dml_addr", |
| 520 | .start = MSM_SDC2_DML_BASE, |
| 521 | .end = MSM_SDC2_BAM_BASE - 1, |
| 522 | .flags = IORESOURCE_MEM, |
| 523 | }, |
| 524 | { |
| 525 | .name = "sdcc_bam_addr", |
| 526 | .start = MSM_SDC2_BAM_BASE, |
| 527 | .end = MSM_SDC2_BAM_BASE + (2 * SZ_4K) - 1, |
| 528 | .flags = IORESOURCE_MEM, |
| 529 | }, |
| 530 | { |
| 531 | .name = "sdcc_bam_irq", |
| 532 | .start = SDC2_BAM_IRQ, |
| 533 | .end = SDC2_BAM_IRQ, |
| 534 | .flags = IORESOURCE_IRQ, |
| 535 | }, |
| 536 | #endif |
| 537 | }; |
| 538 | |
| 539 | static struct resource resources_sdc3[] = { |
| 540 | { |
| 541 | .name = "core_mem", |
| 542 | .flags = IORESOURCE_MEM, |
| 543 | .start = MSM_SDC3_BASE, |
| 544 | .end = MSM_SDC3_DML_BASE - 1, |
| 545 | }, |
| 546 | { |
| 547 | .name = "core_irq", |
| 548 | .flags = IORESOURCE_IRQ, |
| 549 | .start = SDC3_IRQ_0, |
| 550 | .end = SDC3_IRQ_0 |
| 551 | }, |
| 552 | #ifdef CONFIG_MMC_MSM_SPS_SUPPORT |
| 553 | { |
| 554 | .name = "sdcc_dml_addr", |
| 555 | .start = MSM_SDC3_DML_BASE, |
| 556 | .end = MSM_SDC3_BAM_BASE - 1, |
| 557 | .flags = IORESOURCE_MEM, |
| 558 | }, |
| 559 | { |
| 560 | .name = "sdcc_bam_addr", |
| 561 | .start = MSM_SDC3_BAM_BASE, |
| 562 | .end = MSM_SDC3_BAM_BASE + (2 * SZ_4K) - 1, |
| 563 | .flags = IORESOURCE_MEM, |
| 564 | }, |
| 565 | { |
| 566 | .name = "sdcc_bam_irq", |
| 567 | .start = SDC3_BAM_IRQ, |
| 568 | .end = SDC3_BAM_IRQ, |
| 569 | .flags = IORESOURCE_IRQ, |
| 570 | }, |
| 571 | #endif |
| 572 | }; |
| 573 | |
| 574 | static struct resource resources_sdc4[] = { |
| 575 | { |
| 576 | .name = "core_mem", |
| 577 | .flags = IORESOURCE_MEM, |
| 578 | .start = MSM_SDC4_BASE, |
| 579 | .end = MSM_SDC4_DML_BASE - 1, |
| 580 | }, |
| 581 | { |
| 582 | .name = "core_irq", |
| 583 | .flags = IORESOURCE_IRQ, |
| 584 | .start = SDC4_IRQ_0, |
| 585 | .end = SDC4_IRQ_0 |
| 586 | }, |
| 587 | #ifdef CONFIG_MMC_MSM_SPS_SUPPORT |
| 588 | { |
| 589 | .name = "sdcc_dml_addr", |
| 590 | .start = MSM_SDC4_DML_BASE, |
| 591 | .end = MSM_SDC4_BAM_BASE - 1, |
| 592 | .flags = IORESOURCE_MEM, |
| 593 | }, |
| 594 | { |
| 595 | .name = "sdcc_bam_addr", |
| 596 | .start = MSM_SDC4_BAM_BASE, |
| 597 | .end = MSM_SDC4_BAM_BASE + (2 * SZ_4K) - 1, |
| 598 | .flags = IORESOURCE_MEM, |
| 599 | }, |
| 600 | { |
| 601 | .name = "sdcc_bam_irq", |
| 602 | .start = SDC4_BAM_IRQ, |
| 603 | .end = SDC4_BAM_IRQ, |
| 604 | .flags = IORESOURCE_IRQ, |
| 605 | }, |
| 606 | #endif |
| 607 | }; |
| 608 | |
| 609 | struct platform_device apq8064_device_sdc1 = { |
| 610 | .name = "msm_sdcc", |
| 611 | .id = 1, |
| 612 | .num_resources = ARRAY_SIZE(resources_sdc1), |
| 613 | .resource = resources_sdc1, |
| 614 | .dev = { |
| 615 | .coherent_dma_mask = 0xffffffff, |
| 616 | }, |
| 617 | }; |
| 618 | |
| 619 | struct platform_device apq8064_device_sdc2 = { |
| 620 | .name = "msm_sdcc", |
| 621 | .id = 2, |
| 622 | .num_resources = ARRAY_SIZE(resources_sdc2), |
| 623 | .resource = resources_sdc2, |
| 624 | .dev = { |
| 625 | .coherent_dma_mask = 0xffffffff, |
| 626 | }, |
| 627 | }; |
| 628 | |
| 629 | struct platform_device apq8064_device_sdc3 = { |
| 630 | .name = "msm_sdcc", |
| 631 | .id = 3, |
| 632 | .num_resources = ARRAY_SIZE(resources_sdc3), |
| 633 | .resource = resources_sdc3, |
| 634 | .dev = { |
| 635 | .coherent_dma_mask = 0xffffffff, |
| 636 | }, |
| 637 | }; |
| 638 | |
| 639 | struct platform_device apq8064_device_sdc4 = { |
| 640 | .name = "msm_sdcc", |
| 641 | .id = 4, |
| 642 | .num_resources = ARRAY_SIZE(resources_sdc4), |
| 643 | .resource = resources_sdc4, |
| 644 | .dev = { |
| 645 | .coherent_dma_mask = 0xffffffff, |
| 646 | }, |
| 647 | }; |
| 648 | |
| 649 | static struct platform_device *apq8064_sdcc_devices[] __initdata = { |
| 650 | &apq8064_device_sdc1, |
| 651 | &apq8064_device_sdc2, |
| 652 | &apq8064_device_sdc3, |
| 653 | &apq8064_device_sdc4, |
| 654 | }; |
| 655 | |
| 656 | int __init apq8064_add_sdcc(unsigned int controller, |
| 657 | struct mmc_platform_data *plat) |
| 658 | { |
| 659 | struct platform_device *pdev; |
| 660 | |
| 661 | if (!plat) |
| 662 | return 0; |
| 663 | if (controller < 1 || controller > 4) |
| 664 | return -EINVAL; |
| 665 | |
| 666 | pdev = apq8064_sdcc_devices[controller-1]; |
| 667 | pdev->dev.platform_data = plat; |
| 668 | return platform_device_register(pdev); |
| 669 | } |
| 670 | |
Yan He | 06913ce | 2011-08-26 16:33:46 -0700 | [diff] [blame] | 671 | static struct resource resources_sps[] = { |
| 672 | { |
| 673 | .name = "pipe_mem", |
| 674 | .start = 0x12800000, |
| 675 | .end = 0x12800000 + 0x4000 - 1, |
| 676 | .flags = IORESOURCE_MEM, |
| 677 | }, |
| 678 | { |
| 679 | .name = "bamdma_dma", |
| 680 | .start = 0x12240000, |
| 681 | .end = 0x12240000 + 0x1000 - 1, |
| 682 | .flags = IORESOURCE_MEM, |
| 683 | }, |
| 684 | { |
| 685 | .name = "bamdma_bam", |
| 686 | .start = 0x12244000, |
| 687 | .end = 0x12244000 + 0x4000 - 1, |
| 688 | .flags = IORESOURCE_MEM, |
| 689 | }, |
| 690 | { |
| 691 | .name = "bamdma_irq", |
| 692 | .start = SPS_BAM_DMA_IRQ, |
| 693 | .end = SPS_BAM_DMA_IRQ, |
| 694 | .flags = IORESOURCE_IRQ, |
| 695 | }, |
| 696 | }; |
| 697 | |
Gagan Mac | 8a7a5d3 | 2011-11-11 16:43:06 -0700 | [diff] [blame^] | 698 | struct platform_device msm_bus_8064_sys_fabric = { |
| 699 | .name = "msm_bus_fabric", |
| 700 | .id = MSM_BUS_FAB_SYSTEM, |
| 701 | }; |
| 702 | struct platform_device msm_bus_8064_apps_fabric = { |
| 703 | .name = "msm_bus_fabric", |
| 704 | .id = MSM_BUS_FAB_APPSS, |
| 705 | }; |
| 706 | struct platform_device msm_bus_8064_mm_fabric = { |
| 707 | .name = "msm_bus_fabric", |
| 708 | .id = MSM_BUS_FAB_MMSS, |
| 709 | }; |
| 710 | struct platform_device msm_bus_8064_sys_fpb = { |
| 711 | .name = "msm_bus_fabric", |
| 712 | .id = MSM_BUS_FAB_SYSTEM_FPB, |
| 713 | }; |
| 714 | struct platform_device msm_bus_8064_cpss_fpb = { |
| 715 | .name = "msm_bus_fabric", |
| 716 | .id = MSM_BUS_FAB_CPSS_FPB, |
| 717 | }; |
| 718 | |
Yan He | 06913ce | 2011-08-26 16:33:46 -0700 | [diff] [blame] | 719 | static struct msm_sps_platform_data msm_sps_pdata = { |
| 720 | .bamdma_restricted_pipes = 0x06, |
| 721 | }; |
| 722 | |
| 723 | struct platform_device msm_device_sps_apq8064 = { |
| 724 | .name = "msm_sps", |
| 725 | .id = -1, |
| 726 | .num_resources = ARRAY_SIZE(resources_sps), |
| 727 | .resource = resources_sps, |
| 728 | .dev.platform_data = &msm_sps_pdata, |
| 729 | }; |
| 730 | |
Jeff Hugo | 0c0f5e9 | 2011-09-28 13:55:45 -0600 | [diff] [blame] | 731 | struct platform_device msm_device_smd_apq8064 = { |
| 732 | .name = "msm_smd", |
| 733 | .id = -1, |
| 734 | }; |
| 735 | |
Ramesh Masavarapu | f46be1b | 2011-11-03 11:13:41 -0700 | [diff] [blame] | 736 | #ifdef CONFIG_HW_RANDOM_MSM |
| 737 | /* PRNG device */ |
| 738 | #define MSM_PRNG_PHYS 0x1A500000 |
| 739 | static struct resource rng_resources = { |
| 740 | .flags = IORESOURCE_MEM, |
| 741 | .start = MSM_PRNG_PHYS, |
| 742 | .end = MSM_PRNG_PHYS + SZ_512 - 1, |
| 743 | }; |
| 744 | |
| 745 | struct platform_device apq8064_device_rng = { |
| 746 | .name = "msm_rng", |
| 747 | .id = 0, |
| 748 | .num_resources = 1, |
| 749 | .resource = &rng_resources, |
| 750 | }; |
| 751 | #endif |
| 752 | |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 753 | static struct clk_lookup msm_clocks_8064_dummy[] = { |
| 754 | CLK_DUMMY("pll2", PLL2, NULL, 0), |
| 755 | CLK_DUMMY("pll8", PLL8, NULL, 0), |
| 756 | CLK_DUMMY("pll4", PLL4, NULL, 0), |
| 757 | |
| 758 | CLK_DUMMY("afab_clk", AFAB_CLK, NULL, 0), |
| 759 | CLK_DUMMY("afab_a_clk", AFAB_A_CLK, NULL, 0), |
| 760 | CLK_DUMMY("cfpb_clk", CFPB_CLK, NULL, 0), |
| 761 | CLK_DUMMY("cfpb_a_clk", CFPB_A_CLK, NULL, 0), |
| 762 | CLK_DUMMY("dfab_clk", DFAB_CLK, NULL, 0), |
| 763 | CLK_DUMMY("dfab_a_clk", DFAB_A_CLK, NULL, 0), |
| 764 | CLK_DUMMY("ebi1_clk", EBI1_CLK, NULL, 0), |
| 765 | CLK_DUMMY("ebi1_a_clk", EBI1_A_CLK, NULL, 0), |
| 766 | CLK_DUMMY("mmfab_clk", MMFAB_CLK, NULL, 0), |
| 767 | CLK_DUMMY("mmfab_a_clk", MMFAB_A_CLK, NULL, 0), |
| 768 | CLK_DUMMY("mmfpb_clk", MMFPB_CLK, NULL, 0), |
| 769 | CLK_DUMMY("mmfpb_a_clk", MMFPB_A_CLK, NULL, 0), |
| 770 | CLK_DUMMY("sfab_clk", SFAB_CLK, NULL, 0), |
| 771 | CLK_DUMMY("sfab_a_clk", SFAB_A_CLK, NULL, 0), |
| 772 | CLK_DUMMY("sfpb_clk", SFPB_CLK, NULL, 0), |
| 773 | CLK_DUMMY("sfpb_a_clk", SFPB_A_CLK, NULL, 0), |
| 774 | |
Matt Wagantall | e252237 | 2011-08-17 14:52:21 -0700 | [diff] [blame] | 775 | CLK_DUMMY("core_clk", GSBI1_UART_CLK, NULL, OFF), |
| 776 | CLK_DUMMY("core_clk", GSBI2_UART_CLK, NULL, OFF), |
| 777 | CLK_DUMMY("core_clk", GSBI3_UART_CLK, |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 778 | "msm_serial_hsl.0", OFF), |
Matt Wagantall | e252237 | 2011-08-17 14:52:21 -0700 | [diff] [blame] | 779 | CLK_DUMMY("core_clk", GSBI4_UART_CLK, NULL, OFF), |
| 780 | CLK_DUMMY("core_clk", GSBI5_UART_CLK, NULL, OFF), |
| 781 | CLK_DUMMY("core_clk", GSBI6_UART_CLK, NULL, OFF), |
| 782 | CLK_DUMMY("core_clk", GSBI7_UART_CLK, NULL, OFF), |
| 783 | CLK_DUMMY("core_clk", GSBI8_UART_CLK, NULL, OFF), |
| 784 | CLK_DUMMY("core_clk", GSBI9_UART_CLK, NULL, OFF), |
| 785 | CLK_DUMMY("core_clk", GSBI10_UART_CLK, NULL, OFF), |
| 786 | CLK_DUMMY("core_clk", GSBI11_UART_CLK, NULL, OFF), |
| 787 | CLK_DUMMY("core_clk", GSBI12_UART_CLK, NULL, OFF), |
Matt Wagantall | 62cf63e | 2011-08-17 16:34:47 -0700 | [diff] [blame] | 788 | CLK_DUMMY("core_clk", GSBI1_QUP_CLK, NULL, OFF), |
| 789 | CLK_DUMMY("core_clk", GSBI2_QUP_CLK, NULL, OFF), |
| 790 | CLK_DUMMY("core_clk", GSBI3_QUP_CLK, NULL, OFF), |
Matt Wagantall | ac29485 | 2011-08-17 15:44:58 -0700 | [diff] [blame] | 791 | CLK_DUMMY("core_clk", GSBI4_QUP_CLK, "qup_i2c.4", OFF), |
| 792 | CLK_DUMMY("core_clk", GSBI5_QUP_CLK, "spi_qsd.0", OFF), |
Matt Wagantall | 62cf63e | 2011-08-17 16:34:47 -0700 | [diff] [blame] | 793 | CLK_DUMMY("core_clk", GSBI6_QUP_CLK, NULL, OFF), |
| 794 | CLK_DUMMY("core_clk", GSBI7_QUP_CLK, NULL, OFF), |
Matt Wagantall | b86ad26 | 2011-10-24 19:50:29 -0700 | [diff] [blame] | 795 | CLK_DUMMY("core_clk", PDM_CLK, NULL, OFF), |
Matt Wagantall | d86d683 | 2011-08-17 14:06:55 -0700 | [diff] [blame] | 796 | CLK_DUMMY("mem_clk", PMEM_CLK, NULL, OFF), |
Ramesh Masavarapu | f46be1b | 2011-11-03 11:13:41 -0700 | [diff] [blame] | 797 | CLK_DUMMY("core_clk", PRNG_CLK, "msm_rng.0", OFF), |
Matt Wagantall | 37ce384 | 2011-08-17 16:00:36 -0700 | [diff] [blame] | 798 | CLK_DUMMY("core_clk", SDC1_CLK, NULL, OFF), |
| 799 | CLK_DUMMY("core_clk", SDC2_CLK, NULL, OFF), |
| 800 | CLK_DUMMY("core_clk", SDC3_CLK, NULL, OFF), |
| 801 | CLK_DUMMY("core_clk", SDC4_CLK, NULL, OFF), |
Matt Wagantall | 640e5fd | 2011-08-17 16:08:53 -0700 | [diff] [blame] | 802 | CLK_DUMMY("ref_clk", TSIF_REF_CLK, NULL, OFF), |
Matt Wagantall | b86ad26 | 2011-10-24 19:50:29 -0700 | [diff] [blame] | 803 | CLK_DUMMY("core_clk", TSSC_CLK, NULL, OFF), |
Manu Gautam | 5143b25 | 2012-01-05 19:25:23 -0800 | [diff] [blame] | 804 | CLK_DUMMY("alt_core_clk", USB_HS1_XCVR_CLK, NULL, OFF), |
| 805 | CLK_DUMMY("alt_core_clk", USB_HS3_XCVR_CLK, NULL, OFF), |
| 806 | CLK_DUMMY("alt_core_clk", USB_HS4_XCVR_CLK, NULL, OFF), |
| 807 | CLK_DUMMY("phy_clk", USB_PHY0_CLK, NULL, OFF), |
| 808 | CLK_DUMMY("src_clk", USB_FS1_SRC_CLK, NULL, OFF), |
| 809 | CLK_DUMMY("alt_core_clk", USB_FS1_XCVR_CLK, NULL, OFF), |
| 810 | CLK_DUMMY("sys_clk", USB_FS1_SYS_CLK, NULL, OFF), |
Matt Wagantall | c4b3a4d | 2011-08-17 16:58:39 -0700 | [diff] [blame] | 811 | CLK_DUMMY("core_clk", CE2_CLK, NULL, OFF), |
| 812 | CLK_DUMMY("core_clk", CE1_CORE_CLK, NULL, OFF), |
| 813 | CLK_DUMMY("core_clk", CE3_CORE_CLK, NULL, OFF), |
| 814 | CLK_DUMMY("iface_clk", CE3_P_CLK, NULL, OFF), |
Tianyi Gou | 86bb472 | 2011-08-09 13:28:02 -0700 | [diff] [blame] | 815 | CLK_DUMMY("pcie_pclk", PCIE_P_CLK, NULL, OFF), |
| 816 | CLK_DUMMY("pcie_alt_ref_clk", PCIE_ALT_REF_CLK, NULL, OFF), |
| 817 | CLK_DUMMY("sata_rxoob_clk", SATA_RXOOB_CLK, NULL, OFF), |
| 818 | CLK_DUMMY("sata_pmalive_clk", SATA_PMALIVE_CLK, NULL, OFF), |
Matt Wagantall | b86ad26 | 2011-10-24 19:50:29 -0700 | [diff] [blame] | 819 | CLK_DUMMY("ref_clk", SATA_PHY_REF_CLK, NULL, OFF), |
Matt Wagantall | 62cf63e | 2011-08-17 16:34:47 -0700 | [diff] [blame] | 820 | CLK_DUMMY("iface_clk", GSBI1_P_CLK, NULL, OFF), |
| 821 | CLK_DUMMY("iface_clk", GSBI2_P_CLK, NULL, OFF), |
Matt Wagantall | e252237 | 2011-08-17 14:52:21 -0700 | [diff] [blame] | 822 | CLK_DUMMY("iface_clk", GSBI3_P_CLK, "msm_serial_hsl.0", OFF), |
Matt Wagantall | ac29485 | 2011-08-17 15:44:58 -0700 | [diff] [blame] | 823 | CLK_DUMMY("iface_clk", GSBI4_P_CLK, "qup_i2c.4", OFF), |
| 824 | CLK_DUMMY("iface_clk", GSBI5_P_CLK, "spi_qsd.0", OFF), |
Matt Wagantall | e252237 | 2011-08-17 14:52:21 -0700 | [diff] [blame] | 825 | CLK_DUMMY("iface_clk", GSBI6_P_CLK, NULL, OFF), |
Matt Wagantall | 62cf63e | 2011-08-17 16:34:47 -0700 | [diff] [blame] | 826 | CLK_DUMMY("iface_clk", GSBI7_P_CLK, NULL, OFF), |
Matt Wagantall | 640e5fd | 2011-08-17 16:08:53 -0700 | [diff] [blame] | 827 | CLK_DUMMY("iface_clk", TSIF_P_CLK, NULL, OFF), |
Manu Gautam | 5143b25 | 2012-01-05 19:25:23 -0800 | [diff] [blame] | 828 | CLK_DUMMY("iface_clk", USB_FS1_P_CLK, NULL, OFF), |
| 829 | CLK_DUMMY("iface_clk", USB_HS1_P_CLK, NULL, OFF), |
| 830 | CLK_DUMMY("iface_clk", USB_HS3_P_CLK, NULL, OFF), |
| 831 | CLK_DUMMY("iface_clk", USB_HS4_P_CLK, NULL, OFF), |
Matt Wagantall | 37ce384 | 2011-08-17 16:00:36 -0700 | [diff] [blame] | 832 | CLK_DUMMY("iface_clk", SDC1_P_CLK, NULL, OFF), |
| 833 | CLK_DUMMY("iface_clk", SDC2_P_CLK, NULL, OFF), |
| 834 | CLK_DUMMY("iface_clk", SDC3_P_CLK, NULL, OFF), |
| 835 | CLK_DUMMY("iface_clk", SDC4_P_CLK, NULL, OFF), |
Jin Hong | 01f2dbb | 2011-11-03 22:13:51 -0700 | [diff] [blame] | 836 | CLK_DUMMY("core_clk", ADM0_CLK, "msm_dmov", OFF), |
| 837 | CLK_DUMMY("iface_clk", ADM0_P_CLK, "msm_dmov", OFF), |
Matt Wagantall | b86ad26 | 2011-10-24 19:50:29 -0700 | [diff] [blame] | 838 | CLK_DUMMY("iface_clk", PMIC_ARB0_P_CLK, NULL, OFF), |
| 839 | CLK_DUMMY("iface_clk", PMIC_ARB1_P_CLK, NULL, OFF), |
| 840 | CLK_DUMMY("core_clk", PMIC_SSBI2_CLK, NULL, OFF), |
| 841 | CLK_DUMMY("mem_clk", RPM_MSG_RAM_P_CLK, NULL, OFF), |
| 842 | CLK_DUMMY("core_clk", AMP_CLK, NULL, OFF), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 843 | CLK_DUMMY("cam_clk", CAM0_CLK, NULL, OFF), |
| 844 | CLK_DUMMY("cam_clk", CAM1_CLK, NULL, OFF), |
| 845 | CLK_DUMMY("csi_src_clk", CSI0_SRC_CLK, NULL, OFF), |
| 846 | CLK_DUMMY("csi_src_clk", CSI1_SRC_CLK, NULL, OFF), |
| 847 | CLK_DUMMY("csi_clk", CSI0_CLK, NULL, OFF), |
| 848 | CLK_DUMMY("csi_clk", CSI1_CLK, NULL, OFF), |
| 849 | CLK_DUMMY("csi_pix_clk", CSI_PIX_CLK, NULL, OFF), |
| 850 | CLK_DUMMY("csi_rdi_clk", CSI_RDI_CLK, NULL, OFF), |
| 851 | CLK_DUMMY("csiphy_timer_src_clk", CSIPHY_TIMER_SRC_CLK, NULL, OFF), |
| 852 | CLK_DUMMY("csi0phy_timer_clk", CSIPHY0_TIMER_CLK, NULL, OFF), |
| 853 | CLK_DUMMY("csi1phy_timer_clk", CSIPHY1_TIMER_CLK, NULL, OFF), |
| 854 | CLK_DUMMY("dsi_byte_div_clk", DSI1_BYTE_CLK, NULL, OFF), |
| 855 | CLK_DUMMY("dsi_byte_div_clk", DSI2_BYTE_CLK, NULL, OFF), |
| 856 | CLK_DUMMY("dsi_esc_clk", DSI1_ESC_CLK, NULL, OFF), |
| 857 | CLK_DUMMY("dsi_esc_clk", DSI2_ESC_CLK, NULL, OFF), |
Matt Wagantall | 9dc0163 | 2011-08-17 18:55:04 -0700 | [diff] [blame] | 858 | CLK_DUMMY("core_clk", VCAP_CLK, NULL, OFF), |
| 859 | CLK_DUMMY("npl_clk", VCAP_NPL_CLK, NULL, OFF), |
Pu Chen | 86b4be9 | 2011-11-03 17:27:57 -0700 | [diff] [blame] | 860 | CLK_DUMMY("core_clk", GFX3D_CLK, "kgsl-3d0.0", OFF), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 861 | CLK_DUMMY("ijpeg_clk", IJPEG_CLK, NULL, OFF), |
Matt Wagantall | 9dc0163 | 2011-08-17 18:55:04 -0700 | [diff] [blame] | 862 | CLK_DUMMY("mem_clk", IMEM_CLK, NULL, OFF), |
Matt Wagantall | b86ad26 | 2011-10-24 19:50:29 -0700 | [diff] [blame] | 863 | CLK_DUMMY("core_clk", JPEGD_CLK, NULL, OFF), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 864 | CLK_DUMMY("mdp_clk", MDP_CLK, NULL, OFF), |
| 865 | CLK_DUMMY("mdp_vsync_clk", MDP_VSYNC_CLK, NULL, OFF), |
| 866 | CLK_DUMMY("lut_mdp", LUT_MDP_CLK, NULL, OFF), |
Matt Wagantall | bb90da9 | 2011-10-25 15:07:52 -0700 | [diff] [blame] | 867 | CLK_DUMMY("core_clk", ROT_CLK, NULL, OFF), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 868 | CLK_DUMMY("tv_src_clk", TV_SRC_CLK, NULL, OFF), |
Matt Wagantall | b86ad26 | 2011-10-24 19:50:29 -0700 | [diff] [blame] | 869 | CLK_DUMMY("core_clk", VCODEC_CLK, NULL, OFF), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 870 | CLK_DUMMY("mdp_tv_clk", MDP_TV_CLK, NULL, OFF), |
Tianyi Gou | 86bb472 | 2011-08-09 13:28:02 -0700 | [diff] [blame] | 871 | CLK_DUMMY("rgb_tv_clk", RGB_TV_CLK, NULL, OFF), |
| 872 | CLK_DUMMY("npl_tv_clk", NPL_TV_CLK, NULL, OFF), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 873 | CLK_DUMMY("hdmi_clk", HDMI_TV_CLK, NULL, OFF), |
Matt Wagantall | 5a4f1ba | 2011-08-18 18:13:03 -0700 | [diff] [blame] | 874 | CLK_DUMMY("core_clk", HDMI_APP_CLK, "hdmi_msm.1", OFF), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 875 | CLK_DUMMY("vpe_clk", VPE_CLK, NULL, OFF), |
| 876 | CLK_DUMMY("vfe_clk", VFE_CLK, NULL, OFF), |
| 877 | CLK_DUMMY("csi_vfe_clk", CSI0_VFE_CLK, NULL, OFF), |
| 878 | CLK_DUMMY("vfe_axi_clk", VFE_AXI_CLK, NULL, OFF), |
| 879 | CLK_DUMMY("ijpeg_axi_clk", IJPEG_AXI_CLK, NULL, OFF), |
| 880 | CLK_DUMMY("mdp_axi_clk", MDP_AXI_CLK, NULL, OFF), |
Matt Wagantall | bb90da9 | 2011-10-25 15:07:52 -0700 | [diff] [blame] | 881 | CLK_DUMMY("bus_clk", ROT_AXI_CLK, NULL, OFF), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 882 | CLK_DUMMY("vcodec_axi_clk", VCODEC_AXI_CLK, NULL, OFF), |
| 883 | CLK_DUMMY("vcodec_axi_a_clk", VCODEC_AXI_A_CLK, NULL, OFF), |
| 884 | CLK_DUMMY("vcodec_axi_b_clk", VCODEC_AXI_B_CLK, NULL, OFF), |
| 885 | CLK_DUMMY("vpe_axi_clk", VPE_AXI_CLK, NULL, OFF), |
Matt Wagantall | 9dc0163 | 2011-08-17 18:55:04 -0700 | [diff] [blame] | 886 | CLK_DUMMY("bus_clk", GFX3D_AXI_CLK, NULL, OFF), |
Tianyi Gou | 86bb472 | 2011-08-09 13:28:02 -0700 | [diff] [blame] | 887 | CLK_DUMMY("vcap_axi_clk", VCAP_AXI_CLK, NULL, OFF), |
| 888 | CLK_DUMMY("vcap_ahb_clk", VCAP_AHB_CLK, NULL, OFF), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 889 | CLK_DUMMY("amp_pclk", AMP_P_CLK, NULL, OFF), |
| 890 | CLK_DUMMY("csi_pclk", CSI0_P_CLK, NULL, OFF), |
| 891 | CLK_DUMMY("dsi_m_pclk", DSI1_M_P_CLK, NULL, OFF), |
| 892 | CLK_DUMMY("dsi_s_pclk", DSI1_S_P_CLK, NULL, OFF), |
| 893 | CLK_DUMMY("dsi_m_pclk", DSI2_M_P_CLK, NULL, OFF), |
| 894 | CLK_DUMMY("dsi_s_pclk", DSI2_S_P_CLK, NULL, OFF), |
Tianyi Gou | 86bb472 | 2011-08-09 13:28:02 -0700 | [diff] [blame] | 895 | CLK_DUMMY("lvds_clk", LVDS_CLK, NULL, OFF), |
| 896 | CLK_DUMMY("mdp_p2clk", MDP_P2CLK, NULL, OFF), |
| 897 | CLK_DUMMY("dsi2_pixel_clk", DSI2_PIXEL_CLK, NULL, OFF), |
| 898 | CLK_DUMMY("lvds_ref_clk", LVDS_REF_CLK, NULL, OFF), |
Pu Chen | 86b4be9 | 2011-11-03 17:27:57 -0700 | [diff] [blame] | 899 | CLK_DUMMY("iface_clk", GFX3D_P_CLK, "kgsl-3d0.0", OFF), |
Matt Wagantall | 5a4f1ba | 2011-08-18 18:13:03 -0700 | [diff] [blame] | 900 | CLK_DUMMY("master_iface_clk", HDMI_M_P_CLK, "hdmi_msm.1", OFF), |
| 901 | CLK_DUMMY("slave_iface_clk", HDMI_S_P_CLK, "hdmi_msm.1", OFF), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 902 | CLK_DUMMY("ijpeg_pclk", IJPEG_P_CLK, NULL, OFF), |
| 903 | CLK_DUMMY("jpegd_pclk", JPEGD_P_CLK, NULL, OFF), |
Matt Wagantall | 9dc0163 | 2011-08-17 18:55:04 -0700 | [diff] [blame] | 904 | CLK_DUMMY("mem_iface_clk", IMEM_P_CLK, NULL, OFF), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 905 | CLK_DUMMY("mdp_pclk", MDP_P_CLK, NULL, OFF), |
Matt Wagantall | e604d71 | 2011-10-21 15:38:18 -0700 | [diff] [blame] | 906 | CLK_DUMMY("iface_clk", SMMU_P_CLK, "msm_smmu", OFF), |
Matt Wagantall | bb90da9 | 2011-10-25 15:07:52 -0700 | [diff] [blame] | 907 | CLK_DUMMY("iface_clk", ROT_P_CLK, NULL, OFF), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 908 | CLK_DUMMY("vcodec_pclk", VCODEC_P_CLK, NULL, OFF), |
| 909 | CLK_DUMMY("vfe_pclk", VFE_P_CLK, NULL, OFF), |
| 910 | CLK_DUMMY("vpe_pclk", VPE_P_CLK, NULL, OFF), |
| 911 | CLK_DUMMY("mi2s_osr_clk", MI2S_OSR_CLK, NULL, OFF), |
| 912 | CLK_DUMMY("mi2s_bit_clk", MI2S_BIT_CLK, NULL, OFF), |
| 913 | CLK_DUMMY("i2s_mic_osr_clk", CODEC_I2S_MIC_OSR_CLK, NULL, OFF), |
| 914 | CLK_DUMMY("i2s_mic_bit_clk", CODEC_I2S_MIC_BIT_CLK, NULL, OFF), |
| 915 | CLK_DUMMY("i2s_mic_osr_clk", SPARE_I2S_MIC_OSR_CLK, NULL, OFF), |
| 916 | CLK_DUMMY("i2s_mic_bit_clk", SPARE_I2S_MIC_BIT_CLK, NULL, OFF), |
| 917 | CLK_DUMMY("i2s_spkr_osr_clk", CODEC_I2S_SPKR_OSR_CLK, NULL, OFF), |
| 918 | CLK_DUMMY("i2s_spkr_bit_clk", CODEC_I2S_SPKR_BIT_CLK, NULL, OFF), |
| 919 | CLK_DUMMY("i2s_spkr_osr_clk", SPARE_I2S_SPKR_OSR_CLK, NULL, OFF), |
| 920 | CLK_DUMMY("i2s_spkr_bit_clk", SPARE_I2S_SPKR_BIT_CLK, NULL, OFF), |
| 921 | CLK_DUMMY("pcm_clk", PCM_CLK, NULL, OFF), |
Tianyi Gou | 142b8db | 2011-09-21 18:01:54 -0700 | [diff] [blame] | 922 | CLK_DUMMY("audio_slimbus_clk", AUDIO_SLIMBUS_CLK, NULL, OFF), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 923 | |
| 924 | CLK_DUMMY("dfab_dsps_clk", DFAB_DSPS_CLK, NULL, 0), |
Manu Gautam | 5143b25 | 2012-01-05 19:25:23 -0800 | [diff] [blame] | 925 | CLK_DUMMY("core_clk", DFAB_USB_HS_CLK, NULL, 0), |
Matt Wagantall | 37ce384 | 2011-08-17 16:00:36 -0700 | [diff] [blame] | 926 | CLK_DUMMY("bus_clk", DFAB_SDC1_CLK, NULL, 0), |
| 927 | CLK_DUMMY("bus_clk", DFAB_SDC2_CLK, NULL, 0), |
| 928 | CLK_DUMMY("bus_clk", DFAB_SDC3_CLK, NULL, 0), |
| 929 | CLK_DUMMY("bus_clk", DFAB_SDC4_CLK, NULL, 0), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 930 | CLK_DUMMY("dfab_clk", DFAB_CLK, NULL, 0), |
| 931 | CLK_DUMMY("dma_bam_pclk", DMA_BAM_P_CLK, NULL, 0), |
Jin Hong | 01f2dbb | 2011-11-03 22:13:51 -0700 | [diff] [blame] | 932 | CLK_DUMMY("mem_clk", EBI1_ADM_CLK, "msm_dmov", 0), |
Ramesh Masavarapu | 2831191 | 2011-10-27 11:04:12 -0700 | [diff] [blame] | 933 | CLK_DUMMY("ce3_core_src_clk", CE3_SRC_CLK, "qce.0", OFF), |
| 934 | CLK_DUMMY("ce3_core_src_clk", CE3_SRC_CLK, "qcrypto.0", OFF), |
| 935 | CLK_DUMMY("core_clk", CE3_CORE_CLK, "qce.0", OFF), |
| 936 | CLK_DUMMY("core_clk", CE3_CORE_CLK, "qcrypto.0", OFF), |
| 937 | CLK_DUMMY("iface_clk", CE3_P_CLK, "qce0.0", OFF), |
| 938 | CLK_DUMMY("iface_clk", CE3_P_CLK, "qcrypto.0", OFF), |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 939 | }; |
| 940 | |
Stephen Boyd | bb600ae | 2011-08-02 20:11:40 -0700 | [diff] [blame] | 941 | struct clock_init_data apq8064_dummy_clock_init_data __initdata = { |
| 942 | .table = msm_clocks_8064_dummy, |
| 943 | .size = ARRAY_SIZE(msm_clocks_8064_dummy), |
| 944 | }; |