]> git.baikalelectronics.ru Git - kernel.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)
commit5b76e772161a86f0af2521afffdbf0e890a33249
tree6cceb769acdb63139b152008a8fc33a01b03b948
parente5efacb86b5d1dce41f2e73b5e88f2480f18d880
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