]> git.baikalelectronics.ru Git - kernel.git/commit
drm/dp_helper: Define options for FRL training for HDMI2.1 PCON
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 23 Mar 2021 11:24:21 +0000 (16:54 +0530)
committerJani Nikula <jani.nikula@intel.com>
Wed, 31 Mar 2021 09:21:06 +0000 (12:21 +0300)
commitf6b9477aecf1396aca6f5063bde6076ad5cf893d
treedaee97b6df9077be5cd979cf227102005e09d2e0
parentb38d3c87682b7faf68ffc9574d369edb1dd25b96
drm/dp_helper: Define options for FRL training for HDMI2.1 PCON

Currently the FRL training mode (Concurrent, Sequential) and
training type (Normal, Extended) are not defined properly and
are passed as bool values in drm_helpers for pcon
configuration for FRL training.

This patch:
-Add register masks for Sequential and Normal FRL training options.
-Fixes the drm_helpers for FRL Training configuration to use the
 appropriate masks.
-Modifies the calls to the above drm_helpers in i915/intel_dp as per
 the above change.

v2: Re-used the register masks for these options, instead of enum. (Ville)

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210323112422.1211-2-ankit.k.nautiyal@intel.com
drivers/gpu/drm/drm_dp_helper.c
drivers/gpu/drm/i915/display/intel_dp.c
include/drm/drm_dp_helper.h