Skip to content

Commit

Permalink
Enable max dsi serdes/deserdes split mode for 640 and 720p timing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljia5 committed Aug 25, 2023
1 parent b44c50f commit d7470f5
Show file tree
Hide file tree
Showing 4 changed files with 932 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/i915/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ i915-y += \
display/intel_vdsc.o \
display/intel_vrr.o \
display/vlv_dsi.o \
display/vlv_dsi_pll.o
display/vlv_dsi_pll.o \
display/intel_dsi_ser_drv.o

i915-y += i915_perf.o

Expand Down
8 changes: 8 additions & 0 deletions drivers/gpu/drm/i915/display/icl_dsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include "intel_vdsc.h"
#include "skl_scaler.h"
#include "skl_universal_plane.h"
#include "intel_dsi_ser_drv.h"

static int header_credits_available(struct drm_i915_private *dev_priv,
enum transcoder dsi_trans)
Expand Down Expand Up @@ -1201,6 +1202,9 @@ static void gen11_dsi_powerup_panel(struct intel_encoder *encoder)
intel_dsi_msleep(intel_dsi, intel_dsi->panel_on_delay);
intel_dsi_vbt_exec_sequence(intel_dsi, MIPI_SEQ_DEASSERT_RESET);
intel_dsi_vbt_exec_sequence(intel_dsi, MIPI_SEQ_INIT_OTP);

intel_dsi_ser_init();

intel_dsi_vbt_exec_sequence(intel_dsi, MIPI_SEQ_DISPLAY_ON);

/* ensure all panel commands dispatched before enabling transcoder */
Expand Down Expand Up @@ -1777,6 +1781,7 @@ static bool gen11_dsi_initial_fastset_check(struct intel_encoder *encoder,
static void gen11_dsi_encoder_destroy(struct drm_encoder *encoder)
{
intel_encoder_destroy(encoder);
intel_dsi_ser_module_exit();
}

static const struct drm_encoder_funcs gen11_dsi_encoder_funcs = {
Expand Down Expand Up @@ -2097,6 +2102,9 @@ void icl_dsi_init(struct drm_i915_private *dev_priv)
icl_dphy_param_init(intel_dsi);

icl_dsi_add_properties(intel_connector);

intel_dsi_ser_module_init(intel_connector->panel.vbt.lfp_lvds_vbt_mode->hdisplay,
intel_connector->panel.vbt.lfp_lvds_vbt_mode->vdisplay);
return;

err:
Expand Down
Loading

0 comments on commit d7470f5

Please sign in to comment.