From 81cb8ff1d21e854b642131ee782d6f7bfb394567 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 21 Aug 2012 15:35:06 +0300 Subject: [PATCH 08/23] OMAPDSS: Add DT support to DSS, DISPC, DPI, HDMI, VENC Add the code to make DSS, DISPC, DPI, HDMI and VENC drivers work with device tree on OMAP3 and OMAP4. The only change is adding the of_match_tables. Signed-off-by: Tomi Valkeinen --- drivers/video/omap2/dss/dispc.c | 7 +++++++ drivers/video/omap2/dss/dpi.c | 8 ++++++++ drivers/video/omap2/dss/dss.c | 10 ++++++++++ drivers/video/omap2/dss/hdmi.c | 6 ++++++ drivers/video/omap2/dss/venc.c | 7 +++++++ 5 files changed, 38 insertions(+) Index: linux-3.12.6-rt9-r7s6/drivers/video/omap2/dss/dispc.c =================================================================== --- linux-3.12.6-rt9-r7s6.orig/drivers/video/omap2/dss/dispc.c +++ linux-3.12.6-rt9-r7s6/drivers/video/omap2/dss/dispc.c @@ -3744,12 +3744,19 @@ static const struct dev_pm_ops dispc_pm_ .runtime_resume = dispc_runtime_resume, }; +static const struct of_device_id dispc_of_match[] = { + { .compatible = "ti,omap3-dispc", }, + { .compatible = "ti,omap4-dispc", }, + {}, +}; + static struct platform_driver omap_dispchw_driver = { .remove = __exit_p(omap_dispchw_remove), .driver = { .name = "omapdss_dispc", .owner = THIS_MODULE, .pm = &dispc_pm_ops, + .of_match_table = dispc_of_match, }, }; Index: linux-3.12.6-rt9-r7s6/drivers/video/omap2/dss/dpi.c =================================================================== --- linux-3.12.6-rt9-r7s6.orig/drivers/video/omap2/dss/dpi.c +++ linux-3.12.6-rt9-r7s6/drivers/video/omap2/dss/dpi.c @@ -30,6 +30,7 @@ #include #include #include +#include #include