drm/i915/dsi: Extract port_ctrl_reg()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 1 Nov 2023 11:42:12 +0000 (13:42 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 6 Nov 2023 07:56:13 +0000 (09:56 +0200)
commitbda4a7ab26725081e222e71e00a98f4462247216
treec29ddea8d3b9f721565872c0ba31aaee86c332f7
parentcf6e11650395fd27fabff294b95225886b7a9f8e
drm/i915/dsi: Extract port_ctrl_reg()

The code to determine the pre-ICL DSI port control register is
repeated several times. Consolidate.

vlv_dsi_clear_device_ready() is left with the open-coded version
due to the weirdness with port A vs. C on VLV/CHV.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231101114212.9345-6-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/vlv_dsi.c