aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2013-10-15 03:04:20 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-01-09 08:25:35 -0500
commit3d232346c5656b300028b6c920ddc10b229b5264 (patch)
tree58cfe38779bd1cc67e33a1a2f5d892f7ad7c0806 /drivers/gpu/drm/omapdrm
parent80e4ed5411dddbafe90083a6c82dd87e88fde0d7 (diff)
drm/omap: Enable DT support for DMM
Enable use of DT for DMM/Tiler. Originally worked on by Andy Gross <andygro@gmail.com> Cc: Andy Gross <andygro@gmail.com> Cc: DRI Development <dri-devel@lists.freedesktop.org> Signed-off-by: Archit Taneja <archit@ti.com> [tomi.valkeinen@ti.com: use of_match_ptr()] Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm')
-rw-r--r--drivers/gpu/drm/omapdrm/omap_dmm_tiler.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
index 701c4c10e08b..f926b4caf449 100644
--- a/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
+++ b/drivers/gpu/drm/omapdrm/omap_dmm_tiler.c
@@ -969,12 +969,21 @@ static const struct dev_pm_ops omap_dmm_pm_ops = {
969}; 969};
970#endif 970#endif
971 971
972#if defined(CONFIG_OF)
973static const struct of_device_id dmm_of_match[] = {
974 { .compatible = "ti,omap4-dmm", },
975 { .compatible = "ti,omap5-dmm", },
976 {},
977};
978#endif
979
972struct platform_driver omap_dmm_driver = { 980struct platform_driver omap_dmm_driver = {
973 .probe = omap_dmm_probe, 981 .probe = omap_dmm_probe,
974 .remove = omap_dmm_remove, 982 .remove = omap_dmm_remove,
975 .driver = { 983 .driver = {
976 .owner = THIS_MODULE, 984 .owner = THIS_MODULE,
977 .name = DMM_DRIVER_NAME, 985 .name = DMM_DRIVER_NAME,
986 .of_match_table = of_match_ptr(dmm_of_match),
978#ifdef CONFIG_PM 987#ifdef CONFIG_PM
979 .pm = &omap_dmm_pm_ops, 988 .pm = &omap_dmm_pm_ops,
980#endif 989#endif