diff options
Diffstat (limited to 'arch/arm/mach-msm/devices-msm7x00.c')
-rw-r--r-- | arch/arm/mach-msm/devices-msm7x00.c | 69 |
1 files changed, 68 insertions, 1 deletions
diff --git a/arch/arm/mach-msm/devices-msm7x00.c b/arch/arm/mach-msm/devices-msm7x00.c index 4e8c0bcdc92d..fb548a8a21db 100644 --- a/arch/arm/mach-msm/devices-msm7x00.c +++ b/arch/arm/mach-msm/devices-msm7x00.c | |||
@@ -347,6 +347,73 @@ int __init msm_add_sdcc(unsigned int controller, | |||
347 | return platform_device_register(pdev); | 347 | return platform_device_register(pdev); |
348 | } | 348 | } |
349 | 349 | ||
350 | static struct resource resources_mddi0[] = { | ||
351 | { | ||
352 | .start = MSM_PMDH_PHYS, | ||
353 | .end = MSM_PMDH_PHYS + MSM_PMDH_SIZE - 1, | ||
354 | .flags = IORESOURCE_MEM, | ||
355 | }, | ||
356 | { | ||
357 | .start = INT_MDDI_PRI, | ||
358 | .end = INT_MDDI_PRI, | ||
359 | .flags = IORESOURCE_IRQ, | ||
360 | }, | ||
361 | }; | ||
362 | |||
363 | static struct resource resources_mddi1[] = { | ||
364 | { | ||
365 | .start = MSM_EMDH_PHYS, | ||
366 | .end = MSM_EMDH_PHYS + MSM_EMDH_SIZE - 1, | ||
367 | .flags = IORESOURCE_MEM, | ||
368 | }, | ||
369 | { | ||
370 | .start = INT_MDDI_EXT, | ||
371 | .end = INT_MDDI_EXT, | ||
372 | .flags = IORESOURCE_IRQ, | ||
373 | }, | ||
374 | }; | ||
375 | |||
376 | struct platform_device msm_device_mddi0 = { | ||
377 | .name = "msm_mddi", | ||
378 | .id = 0, | ||
379 | .num_resources = ARRAY_SIZE(resources_mddi0), | ||
380 | .resource = resources_mddi0, | ||
381 | .dev = { | ||
382 | .coherent_dma_mask = 0xffffffff, | ||
383 | }, | ||
384 | }; | ||
385 | |||
386 | struct platform_device msm_device_mddi1 = { | ||
387 | .name = "msm_mddi", | ||
388 | .id = 1, | ||
389 | .num_resources = ARRAY_SIZE(resources_mddi1), | ||
390 | .resource = resources_mddi1, | ||
391 | .dev = { | ||
392 | .coherent_dma_mask = 0xffffffff, | ||
393 | }, | ||
394 | }; | ||
395 | |||
396 | static struct resource resources_mdp[] = { | ||
397 | { | ||
398 | .start = MSM_MDP_PHYS, | ||
399 | .end = MSM_MDP_PHYS + MSM_MDP_SIZE - 1, | ||
400 | .name = "mdp", | ||
401 | .flags = IORESOURCE_MEM | ||
402 | }, | ||
403 | { | ||
404 | .start = INT_MDP, | ||
405 | .end = INT_MDP, | ||
406 | .flags = IORESOURCE_IRQ, | ||
407 | }, | ||
408 | }; | ||
409 | |||
410 | struct platform_device msm_device_mdp = { | ||
411 | .name = "msm_mdp", | ||
412 | .id = 0, | ||
413 | .num_resources = ARRAY_SIZE(resources_mdp), | ||
414 | .resource = resources_mdp, | ||
415 | }; | ||
416 | |||
350 | struct clk msm_clocks_7x01a[] = { | 417 | struct clk msm_clocks_7x01a[] = { |
351 | CLK_PCOM("adm_clk", ADM_CLK, NULL, 0), | 418 | CLK_PCOM("adm_clk", ADM_CLK, NULL, 0), |
352 | CLK_PCOM("adsp_clk", ADSP_CLK, NULL, 0), | 419 | CLK_PCOM("adsp_clk", ADSP_CLK, NULL, 0), |
@@ -364,7 +431,7 @@ struct clk msm_clocks_7x01a[] = { | |||
364 | CLK_PCOM("mdp_clk", MDP_CLK, NULL, OFF), | 431 | CLK_PCOM("mdp_clk", MDP_CLK, NULL, OFF), |
365 | CLK_PCOM("pbus_clk", PBUS_CLK, NULL, 0), | 432 | CLK_PCOM("pbus_clk", PBUS_CLK, NULL, 0), |
366 | CLK_PCOM("pcm_clk", PCM_CLK, NULL, 0), | 433 | CLK_PCOM("pcm_clk", PCM_CLK, NULL, 0), |
367 | CLK_PCOM("pmdh_clk", PMDH_CLK, NULL, OFF ), | 434 | CLK_PCOM("mddi_clk", PMDH_CLK, NULL, OFF | CLK_MINMAX), |
368 | CLK_PCOM("sdac_clk", SDAC_CLK, NULL, OFF), | 435 | CLK_PCOM("sdac_clk", SDAC_CLK, NULL, OFF), |
369 | CLK_PCOM("sdc_clk", SDC1_CLK, &msm_device_sdc1.dev, OFF), | 436 | CLK_PCOM("sdc_clk", SDC1_CLK, &msm_device_sdc1.dev, OFF), |
370 | CLK_PCOM("sdc_pclk", SDC1_P_CLK, &msm_device_sdc1.dev, OFF), | 437 | CLK_PCOM("sdc_pclk", SDC1_P_CLK, &msm_device_sdc1.dev, OFF), |