]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/dsi: disassociate VBT video transfer mode from register values
authorJani Nikula <jani.nikula@intel.com>
Thu, 17 Feb 2022 22:40:20 +0000 (00:40 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 21 Feb 2022 10:06:06 +0000 (12:06 +0200)
commit8f0991cccec93665dd6ecd88dbefd7db2b28c85e
tree6cceb769acdb63139b152008a8fc33a01b03b948
parente62f25e8b3cdd29224c27938addba817aedd4b54
drm/i915/dsi: disassociate VBT video transfer mode from register values

The VBT DSI video transfer mode field values have been defined in terms
of the VLV MIPI_VIDEO_MODE_FORMAT register. The ICL DSI code maps that
to ICL DSI_TRANS_FUNC_CONF() register. The values are the same, though
the shift is different.

Make a clean break and disassociate the values from each other. Assume
the values can be different, and translate the VBT value to VLV and ICL
register values as needed. Use the existing macros from intel_bios.h.

This will be useful in splitting the DSI register macros to files by DSI
implementation.

Cc: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220217224023.3994777-1-jani.nikula@intel.com
drivers/gpu/drm/i915/display/icl_dsi.c
drivers/gpu/drm/i915/display/intel_dsi.h
drivers/gpu/drm/i915/display/intel_dsi_vbt.c
drivers/gpu/drm/i915/display/vlv_dsi.c