drm/i915/dsi: add support for gpio elements on CHV
authorJani Nikula <jani.nikula@intel.com>
Tue, 26 Apr 2016 10:27:40 +0000 (13:27 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 27 Apr 2016 06:48:17 +0000 (09:48 +0300)
commita0a6d4ffd2adc76c192ebe7ef89b81e3f2f4a078
tree9f4e042689a9f37b6e62a0921b5d8abeb3e2f590
parent4b541efe440b45cd9cc1fb609d211316dca2cc96
drm/i915/dsi: add support for gpio elements on CHV

Add support for CHV gpio programming in DSI gpio elements.

v2: Overhaul macros according to Ville's review.

v3: Address Ville's review:
 - swap E and SE gpio ranges
 - add a note about max SE index
 - use GPO, not HIZ
 - swap cfg0 and cfg1

v4: fix port for dsi sequence versions 1 and 2

[Rewritten by Jani, based on earlier work by Yogesh and Deepak.]

Signed-off-by: Yogesh Mohan Marimuthu <yogesh.mohan.marimuthu@intel.com>
Signed-off-by: Deepak M <m.deepak@intel.com>
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/bdaaf9915a5005305b31bb26cf619a5a82472f2a.1461666263.git.jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dsi_panel_vbt.c