]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/dsi: set pipe_bpp on ICL configure config
authorJani Nikula <jani.nikula@intel.com>
Tue, 10 Dec 2019 10:50:53 +0000 (12:50 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 11 Dec 2019 06:16:16 +0000 (08:16 +0200)
The ICL DSI pipe_bpp currently comes from
compute_baseline_pipe_bpp(). Fix it.

Cc: Vandita Kulkarni <vandita.kulkarni@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Vandita Kulkarni <vandita.kulkarni@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/191f5c4fa5f4af29d4bf7e30bb35f45ce05b33f0.1575974743.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/icl_dsi.c

index f688207932e007c89eed663005f00a135393022e..ef53ed6d3ecfca26b983fa233e362cd00fc7d70c 100644 (file)
@@ -1286,6 +1286,11 @@ static int gen11_dsi_compute_config(struct intel_encoder *encoder,
        else
                pipe_config->cpu_transcoder = TRANSCODER_DSI_0;
 
+       if (intel_dsi->pixel_format == MIPI_DSI_FMT_RGB888)
+               pipe_config->pipe_bpp = 24;
+       else
+               pipe_config->pipe_bpp = 18;
+
        pipe_config->clock_set = true;
        pipe_config->port_clock = intel_dsi_bitrate(intel_dsi) / 5;