drm/omap: Add device tree support to DMM
Subsystems (3)
PATCH 1/1 drm/omap: Add device tree support to DMM
Added in detection/support for DMM devices when booting with device tree.
Signed-off-by Andy Gross <[email protected]>
--- 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
@@ -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
Quoted 4 lines · Andy Gross
Added in detection/support for DMM devices when booting with device tree.
Signed-off-by Andy Gross <[email protected]>
Reviewed-by Rob Clark <[email protected]>
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@@ -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