Skip to contentSkip to conversation

drm/omap: Add device tree support to DMM

PATCH In review Andy Gross 2 participants 2 messages Mar 19, 2013 – Mar 20, 2013

Subsystems (3)
lore
Share & tools
lore

Andy Gross

author
#0 lore raw

PATCH 1/1 drm/omap: Add device tree support to DMM

Added in detection/support for DMM devices when booting with device tree.

---
 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +10 -0
index 9b794c9..d84f37c 100644
@@ -29,6 +29,7 @@
 #include <linux/mm.h>
 #include <linux/time.h>
 #include <linux/list.h>
+#include <linux/of.h>
 
 #include "omap_dmm_tiler.h"
 #include "omap_dmm_priv.h"
@@ -968,6 +969,14 @@ static const struct dev_pm_ops omap_dmm_pm_ops = {
 };
 #endif
 
+#ifdef CONFIG_OF
+static const struct of_device_id omap_dmm_of_match[] = {
+	{.compatible = "ti,dmm", },
+	{},
+};
+MODULE_DEVICE_TABLE(of, omap_dmm_of_match);
+#endif
+
 struct platform_driver omap_dmm_driver = {
 	.probe = omap_dmm_probe,
 	.remove = omap_dmm_remove,
@@ -977,6 +986,7 @@ struct platform_driver omap_dmm_driver = {
 #ifdef CONFIG_PM
 		.pm = &omap_dmm_pm_ops,
 #endif
+		.of_match_table = of_match_ptr(omap_dmm_of_match),
 	},
 };
 
Signature · 1 line
1.7.5.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Andy Gross

Added in detection/support for DMM devices when booting with device tree.

Quoted 42 lines
---
 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +10 -1
index 9b794c9..d84f37c 100644
@@ -29,6 +29,7 @@
 #include <linux/mm.h>
 #include <linux/time.h>
 #include <linux/list.h>
+#include <linux/of.h>
 
 #include "omap_dmm_tiler.h"
 #include "omap_dmm_priv.h"
@@ -968,6 +969,14 @@ static const struct dev_pm_ops omap_dmm_pm_ops = {
 };
 #endif
 
+#ifdef CONFIG_OF
+static const struct of_device_id omap_dmm_of_match[] = {
+       {.compatible = "ti,dmm", },
+       {},
+};
+MODULE_DEVICE_TABLE(of, omap_dmm_of_match);
+#endif
+
 struct platform_driver omap_dmm_driver = {
        .probe = omap_dmm_probe,
        .remove = omap_dmm_remove,
@@ -977,6 +986,7 @@ struct platform_driver omap_dmm_driver = {
 #ifdef CONFIG_PM
                .pm = &omap_dmm_pm_ops,
 #endif
+               .of_match_table = of_match_ptr(omap_dmm_of_match),
        },
 };
 
--

1.7.5.4