hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c
....@@ -25,9 +25,13 @@
2525 * Jackie Li<yaodong.li@intel.com>
2626 */
2727
28
+#include <linux/delay.h>
29
+
30
+#include <drm/drm_simple_kms_helper.h>
31
+
2832 #include "mdfld_dsi_dpi.h"
29
-#include "mdfld_output.h"
3033 #include "mdfld_dsi_pkg_sender.h"
34
+#include "mdfld_output.h"
3135 #include "psb_drv.h"
3236 #include "tc35876x-dsi-lvds.h"
3337
....@@ -951,7 +955,7 @@
951955
952956 /* panel hard-reset */
953957 if (p_funcs->reset) {
954
- ret = p_funcs->reset(pipe);
958
+ ret = p_funcs->reset(dev, pipe);
955959 if (ret) {
956960 DRM_ERROR("Panel %d hard-reset failed\n", pipe);
957961 return NULL;
....@@ -991,10 +995,7 @@
991995 /*create drm encoder object*/
992996 connector = &dsi_connector->base.base;
993997 encoder = &dpi_output->base.base.base;
994
- drm_encoder_init(dev,
995
- encoder,
996
- p_funcs->encoder_funcs,
997
- DRM_MODE_ENCODER_LVDS, NULL);
998
+ drm_simple_encoder_init(dev, encoder, DRM_MODE_ENCODER_LVDS);
998999 drm_encoder_helper_add(encoder,
9991000 p_funcs->encoder_helper_funcs);
10001001
....@@ -1004,10 +1005,10 @@
10041005 /*set possible crtcs and clones*/
10051006 if (dsi_connector->pipe) {
10061007 encoder->possible_crtcs = (1 << 2);
1007
- encoder->possible_clones = (1 << 1);
1008
+ encoder->possible_clones = 0;
10081009 } else {
10091010 encoder->possible_crtcs = (1 << 0);
1010
- encoder->possible_clones = (1 << 0);
1011
+ encoder->possible_clones = 0;
10111012 }
10121013
10131014 dsi_connector->base.encoder = &dpi_output->base.base;