drm/i915/dsi: start using enum mipi_dsi_pixel_format
authorJani Nikula <jani.nikula@intel.com>
Wed, 16 Mar 2016 10:21:40 +0000 (12:21 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 16 Mar 2016 15:55:52 +0000 (17:55 +0200)
commit1e78aa014b84ff23f99daa0e0832b01337244062
tree195618d891b7c536205f460eb6c239a09cb708d5
parent42c151e65e80d22b611ba07812374ed726ebb947
drm/i915/dsi: start using enum mipi_dsi_pixel_format

A small step moving us closer to DRM MIPI DSI code. Use enum
mipi_dsi_pixel_format instead of our own. The first benefit is being
able to use common mipi_dsi_pixel_format_to_bpp().

There's a little back and forth conversion with the VBT -> enum ->
register, since we have just shoved the VBT value into the register
directly. Longer term, all the VBT parsing and deciphering should be
done in intel_bios.c, and abstracted there.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1458123700-16003-2-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dsi.c
drivers/gpu/drm/i915/intel_dsi.h
drivers/gpu/drm/i915/intel_dsi_panel_vbt.c
drivers/gpu/drm/i915/intel_dsi_pll.c