drm/dp_helper: Add support for Configuring DSC for HDMI2.1 Pcon
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 22 Dec 2020 15:50:27 +0000 (17:50 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 22 Dec 2020 15:52:18 +0000 (17:52 +0200)
commite2e16da398d9149ede0162a55f44537582aed2e7
tree6a2a62e611469005853f26961938f411e783938d
parent3ce98018c8f9a5de857a9f4bcd300ecf9fc8280b
drm/dp_helper: Add support for Configuring DSC for HDMI2.1 Pcon

This patch adds registers for getting DSC encoder capability for
a HDMI2.1 PCon. It also addes helper functions to configure
DSC between the PCON and HDMI2.1 sink.

v2: Corrected offset for DSC encoder bpc and minor changes.
Also added helper functions for getting pcon dsc encoder capabilities
as suggested by Uma Shankar.

v3: Only setting the DSC bits for the Protocol Converter control
registers, avoiding overwritining color conversion bits.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com> (v2)
[Jani: Fixed checkpatch BLOCK_COMMENT_STYLE.]
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201218103723.30844-7-ankit.k.nautiyal@intel.com
drivers/gpu/drm/drm_dp_helper.c
include/drm/drm_dp_helper.h