[PATCH 7/8] arm: exynos: add exynos5 drm framework platform device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch adds drm framework platform device. This device is a
software device, hence not made part of device tree file.

Signed-off-by: Rahul Sharma <rahul.sharma@xxxxxxxxxxx>
---
 arch/arm/mach-exynos/mach-exynos5-dt.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index 9a6d569..db3447c 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -17,6 +17,7 @@
 #include <asm/hardware/gic.h>
 #include <mach/map.h>
 
+#include <plat/devs.h>
 #include <plat/cpu.h>
 #include <plat/regs-serial.h>
 #include <plat/gpio-cfg.h>
@@ -77,6 +78,9 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = {
 	{},
 };
 
+static struct platform_device *exynos5_devices[] __initdata = {
+	&exynos_device_drm,
+};
 static void __init exynos5250_dt_map_io(void)
 {
 	exynos_init_io(NULL, 0);
@@ -94,6 +98,7 @@ static void __init exynos5250_dt_machine_init(void)
 	of_platform_populate(NULL, of_default_bus_match_table,
 				exynos5250_auxdata_lookup, NULL);
 	smdk_hpd_setup();
+	platform_add_devices(exynos5_devices, ARRAY_SIZE(exynos5_devices));
 }
 
 static char const *exynos5250_dt_compat[] __initdata = {
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux