aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos/dev-drm.c
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2012-05-12 06:42:33 +0900
committerKukjin Kim <kgene.kim@samsung.com>2012-05-12 06:42:33 +0900
commit18c411b7974f47f84c29507bdf3e0573890c0f0e (patch)
tree47bd7169b68ba5eb0da67df68a214e62e9bc19f5 /arch/arm/mach-exynos/dev-drm.c
parent5cf5983423756dad05d679ce6ce1f49cac5ba1ae (diff)
downloadkernel_goldelico_gta04-18c411b7974f47f84c29507bdf3e0573890c0f0e.zip
kernel_goldelico_gta04-18c411b7974f47f84c29507bdf3e0573890c0f0e.tar.gz
kernel_goldelico_gta04-18c411b7974f47f84c29507bdf3e0573890c0f0e.tar.bz2
ARM: EXYNOS: add platform device for core DRM subsystem
Add platform device for Exynos DRM core. This device is used for creating DRM user-space device and allocating memory for display buffers. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos/dev-drm.c')
-rw-r--r--arch/arm/mach-exynos/dev-drm.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/dev-drm.c b/arch/arm/mach-exynos/dev-drm.c
new file mode 100644
index 0000000..17c9c6e
--- /dev/null
+++ b/arch/arm/mach-exynos/dev-drm.c
@@ -0,0 +1,29 @@
+/*
+ * linux/arch/arm/mach-exynos/dev-drm.c
+ *
+ * Copyright (c) 2012 Samsung Electronics Co., Ltd.
+ * http://www.samsung.com
+ *
+ * EXYNOS - core DRM device
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+#include <linux/kernel.h>
+#include <linux/dma-mapping.h>
+#include <linux/platform_device.h>
+
+#include <plat/devs.h>
+
+static u64 exynos_drm_dma_mask = DMA_BIT_MASK(32);
+
+struct platform_device exynos_device_drm = {
+ .name = "exynos-drm",
+ .dev = {
+ .dma_mask = &exynos_drm_dma_mask,
+ .coherent_dma_mask = DMA_BIT_MASK(32),
+ }
+};