aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUma Shankar <uma.shankar@intel.com>2017-02-08 16:20:50 +0530
committerJani Nikula <jani.nikula@intel.com>2017-02-15 17:32:26 +0200
commit645a2f6e03ed4a998da4b3642d80dd25d371b6b1 (patch)
tree34e96768034bfe7659f4f4f08fe99ac7dd537ce6
parentdrm/i915/dp: Reset the link params on HPD/connected boot/resume (diff)
downloadwireguard-linux-645a2f6e03ed4a998da4b3642d80dd25d371b6b1.tar.xz
wireguard-linux-645a2f6e03ed4a998da4b3642d80dd25d371b6b1.zip
drm/i915: Check for platform specific GPIO config
Panel GPIO control should be done based on platform. Add a check to restrict VLV and CHT specific GPIO confirguration, so that they dont apply to other platforms. The VBT spec fails to mention the PMIC backlight control option is valid only for VLV/CHT, and the field may be set to "PMIC" for BXT even if PMIC is not desired or possible. Signed-off-by: Uma Shankar <uma.shankar@intel.com> Signed-off-by: Vidya Srinivas <vidya.srinivas@intel.com> [Jani: amended commit message a bit and fixed indentation.] Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1486551058-22596-2-git-send-email-vidya.srinivas@intel.com
-rw-r--r--drivers/gpu/drm/i915/intel_dsi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_dsi.c b/drivers/gpu/drm/i915/intel_dsi.c
index c98234eca2a6..c3d97e0bc59d 100644
--- a/drivers/gpu/drm/i915/intel_dsi.c
+++ b/drivers/gpu/drm/i915/intel_dsi.c
@@ -1584,7 +1584,8 @@ void intel_dsi_init(struct drm_i915_private *dev_priv)
* In case of BYT with CRC PMIC, we need to use GPIO for
* Panel control.
*/
- if (dev_priv->vbt.dsi.config->pwm_blc == PPS_BLC_PMIC) {
+ if ((IS_VALLEYVIEW(dev_priv) || IS_CHERRYVIEW(dev_priv)) &&
+ (dev_priv->vbt.dsi.config->pwm_blc == PPS_BLC_PMIC)) {
intel_dsi->gpio_panel =
gpiod_get(dev->dev, "panel", GPIOD_OUT_HIGH);