drm/i915/dg2: Update modeset sequences
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 23 Jul 2021 17:42:35 +0000 (10:42 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 29 Jul 2021 16:07:54 +0000 (09:07 -0700)
commitf82f2563bc6000e01820df7a5a969ec89a77d1d7
treedea2bfc28c566668d51840db4fb0df23f986627d
parenta046a0daa3c6855d63fdf108919bb9666ba96c82
drm/i915/dg2: Update modeset sequences

DG2 has some changes to the expected modesetting sequences when compared
to gen12.  Adjust our driver logic accordingly.  Although the DP
sequence is pretty similar to TGL's, there are some steps that change,
so let's split the handling for that out into a separate function.

v2:
 - Switch wait_for_us() -> _wait_for() so that we can parameterize the
   timeout rather than duplicating the macro call.  (Jani)

Bspec: 54128
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210723174239.1551352-27-matthew.d.roper@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c