OSDN Git Service

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)
commit68a8c645b2538c1cbecf62de916d4f92f03978fb
treedaee97b6df9077be5cd979cf227102005e09d2e0
parent25926cd856bea1e25f87f35c6fd935b4161b869b
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