drm/i915: Query the vswing levels per-lane for tgl dkl phy
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 6 Oct 2021 20:49:31 +0000 (23:49 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 3 Nov 2021 17:45:19 +0000 (19:45 +0200)
commita905ced613095c1ca406c179b2f0d44219d82381
treef2bdad930abd775327491702a234c39541407444
parent305448e55745dd4634272794c8c01edc872bcf63
drm/i915: Query the vswing levels per-lane for tgl dkl phy

Prepare for per-lane drive settings by querying the desired vswing
level per-lane.

Note that the code only does two loops, with each one writing the
levels for two TX lanes. The register offsets also look a bit funny
because each time through the loop we write to the exact same
register offsets. The crucial bit is the HIP_INDEX_REG
write that steers the same mmio window into different places.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211006204937.30774-11-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/i915/display/intel_ddi.c