drm/i915/tc: Update DP_MODE programming
authorClinton A Taylor <clinton.a.taylor@intel.com>
Thu, 26 Sep 2019 21:06:56 +0000 (14:06 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Fri, 27 Sep 2019 17:40:17 +0000 (10:40 -0700)
commit3b51be4e4061bd5e0f1b73f56cfecaa879c76d51
treed6e24340569d6977ab4000d9eafadd55e293b45a
parent283a4095af9dd95e5d6d9f3e7f8b66a4b9f84082
drm/i915/tc: Update DP_MODE programming

BSpec was updated(r146548) with a new MG_DP_MODE Programming table,
now taking in consideration the pin assignment and allowing us to
optimize power by shutting down available but not needed lanes.

It was tested on ICL and TGL, with adaptors that used pin assignment
C and B, reversing the connector and going to different modes testing
the not needed lane shutdown.

v5:
Using crtc_state->lane_count instead of dp.lane_count

BSpec: 21735
BSpec: 49292

Cc: Imre Deak <imre.deak@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Clinton A Taylor <clinton.a.taylor@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190926210659.56317-1-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_tc.c
drivers/gpu/drm/i915/display/intel_tc.h
drivers/gpu/drm/i915/i915_reg.h