浏览代码

drm/tilcdc: tfp410: Add atomic modeset helpers to connector funcs

Add atomic modeset helpers to tfp410 connector funcs. Property handling
related helpers, atomic reset helper, and new dpms helper is needed in
connector for atomic modeseting to work. The default helper functions
are enough.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Jyri Sarha 9 年之前
父节点
当前提交
018cfbde63
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      drivers/gpu/drm/tilcdc/tilcdc_tfp410.c

+ 5 - 1
drivers/gpu/drm/tilcdc/tilcdc_tfp410.c

@@ -20,6 +20,7 @@
 #include <linux/of_gpio.h>
 #include <linux/of_gpio.h>
 #include <linux/pinctrl/pinmux.h>
 #include <linux/pinctrl/pinmux.h>
 #include <linux/pinctrl/consumer.h>
 #include <linux/pinctrl/consumer.h>
+#include <drm/drm_atomic_helper.h>
 
 
 #include "tilcdc_drv.h"
 #include "tilcdc_drv.h"
 
 
@@ -200,9 +201,12 @@ static struct drm_encoder *tfp410_connector_best_encoder(
 
 
 static const struct drm_connector_funcs tfp410_connector_funcs = {
 static const struct drm_connector_funcs tfp410_connector_funcs = {
 	.destroy            = tfp410_connector_destroy,
 	.destroy            = tfp410_connector_destroy,
-	.dpms               = drm_helper_connector_dpms,
+	.dpms               = drm_atomic_helper_connector_dpms,
 	.detect             = tfp410_connector_detect,
 	.detect             = tfp410_connector_detect,
 	.fill_modes         = drm_helper_probe_single_connector_modes,
 	.fill_modes         = drm_helper_probe_single_connector_modes,
+	.reset              = drm_atomic_helper_connector_reset,
+	.atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,
+	.atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
 };
 };
 
 
 static const struct drm_connector_helper_funcs tfp410_connector_helper_funcs = {
 static const struct drm_connector_helper_funcs tfp410_connector_helper_funcs = {