Commit 3d232346 authored by Archit Taneja's avatar Archit Taneja Committed by Tomi Valkeinen

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: default avatarArchit Taneja <archit@ti.com>
[tomi.valkeinen@ti.com: use of_match_ptr()]
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 80e4ed54
...@@ -969,12 +969,21 @@ static const struct dev_pm_ops omap_dmm_pm_ops = { ...@@ -969,12 +969,21 @@ static const struct dev_pm_ops omap_dmm_pm_ops = {
}; };
#endif #endif
#if defined(CONFIG_OF)
static const struct of_device_id dmm_of_match[] = {
{ .compatible = "ti,omap4-dmm", },
{ .compatible = "ti,omap5-dmm", },
{},
};
#endif
struct platform_driver omap_dmm_driver = { struct platform_driver omap_dmm_driver = {
.probe = omap_dmm_probe, .probe = omap_dmm_probe,
.remove = omap_dmm_remove, .remove = omap_dmm_remove,
.driver = { .driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = DMM_DRIVER_NAME, .name = DMM_DRIVER_NAME,
.of_match_table = of_match_ptr(dmm_of_match),
#ifdef CONFIG_PM #ifdef CONFIG_PM
.pm = &omap_dmm_pm_ops, .pm = &omap_dmm_pm_ops,
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment