ARM: EXYNOS: Adding DRM platform device
authorPrathyush K <prathyush.k@samsung.com>
Wed, 9 May 2012 05:28:18 +0000 (22:28 -0700)
committerPrathyush K <prathyush.k@samsung.com>
Wed, 20 Jun 2012 13:34:47 +0000 (19:04 +0530)
Add DRM platform device to machine file for exynos5.

Change-Id: I92a1b9a52fb892b09cc39bbbafb02e934c39984e
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
arch/arm/mach-exynos/mach-exynos5-dt.c

index b4f581d..da30497 100644 (file)
@@ -34,6 +34,7 @@
 
 #include <video/platform_lcd.h>
 
+#include "drm/exynos_drm.h"
 #include "common.h"
 
 static void __init smsc911x_init(int ncs)
@@ -59,6 +60,14 @@ static void __init smsc911x_init(int ncs)
                S5P_SROM_BC0 + (ncs * 4));
 }
 
+static struct platform_device exynos_drm_device = {
+       .name           = "exynos-drm",
+       .dev = {
+               .dma_mask = &exynos_drm_device.dev.coherent_dma_mask,
+               .coherent_dma_mask = 0xffffffffUL,
+       }
+};
+
 static void mipi_lcd_set_power(struct plat_lcd_data *pd,
                        unsigned int power)
 {
@@ -231,6 +240,7 @@ static struct platform_device *smdk5250_devices[] __initdata = {
        &exynos_device_md1, /* for media device framework */
        &exynos_device_md2, /* for media device framework */
        &samsung_asoc_dma,  /* for audio dma interface device */
+       &exynos_drm_device,
 };
 
 static void __init exynos5250_dt_map_io(void)