drm/i915/icl: Implement voltage swing programming sequence for MG PHY DDI
authorManasi Navare <manasi.d.navare@intel.com>
Thu, 28 Jun 2018 22:35:44 +0000 (15:35 -0700)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Tue, 24 Jul 2018 22:17:32 +0000 (15:17 -0700)
commit07685c827b2a020c88c25a6961c435050bbbe7b3
treeb54d80bac3de40129a8b1d3854760dae7bbe0c5a
parenta38bb309c2ce25a562819949a19fefa38ae8ab96
drm/i915/icl: Implement voltage swing programming sequence for MG PHY DDI

This sequence is used to setup voltage swing before enabling MG PHY DDI
as well as for changing the voltage during DisplayPort Link training.

For ICL, there are two types of DDIs. This sequence needs to be used
for MG PHY DDI which is ports C-F.

v6 (From Manasi):
* Add programming for MG_CLKHUB and MG_TX_DCC as per the
spec updates

v5 (from Paulo):
* Checkpatch.
v4 (from Paulo):
* Fix bogus error message
* Fix copy+paste bugs (missing s/TX1/TX2/ after copy+paste)
* Use the new mask names
* Stay under 80 columns
* Add some blank lines
v3:
* Clear the regs before writing (Paulo)
v2:
* Rename to MG PHY in the function def (Jani Nikula)
* Rebase on top of new revision of other patches in series

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1530225344-20373-2-git-send-email-manasi.d.navare@intel.com
drivers/gpu/drm/i915/intel_ddi.c