drm/i915/bxt: get_hw_state for BXT
authorShashank Sharma <shashank.sharma@intel.com>
Tue, 1 Sep 2015 14:11:45 +0000 (19:41 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 2 Oct 2015 12:45:25 +0000 (14:45 +0200)
commitbaeac68a82f07f7c37bfc3d9624127b813a8d8b4
tree970da644b731b654ff82badc2628c450601f7b8b
parentb389a45c6b2f9b310ddf631d23b9e3e045cf747b
drm/i915/bxt: get_hw_state for BXT

Pick appropriate port control register (BXT or VLV), based on device.
Get the current hw state wrt Mipi port.

v2: Rebased on latest drm nightly branch.

v3: Removed the GET_DSI_PORT_CTRL Macro for consistency with earlier
    implementations as per Jani's suggestion.

Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dsi.c