]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915/dsi: Move poking of panel-enable GPIO to intel_dsi_vbt.c
authorHans de Goede <hdegoede@redhat.com>
Mon, 16 Dec 2019 20:51:19 +0000 (21:51 +0100)
committerHans de Goede <hdegoede@redhat.com>
Fri, 3 Jan 2020 10:46:59 +0000 (11:46 +0100)
commitea0fe6725141788ec0bb5a1bcb68d136cb5c6970
treee4dd5078f9b6eb3ec9df76a922e16f651d6f1420
parentcdd280b1b9b15217b404276b3e703e2764cad8c3
drm/i915/dsi: Move poking of panel-enable GPIO to intel_dsi_vbt.c

On some older devices (BYT, CHT) which may use v2 VBT MIPI-sequences,
we need to manually control the panel enable GPIO as v2 sequences do
not do this.

So far we have been carrying the code to do this on BYT/CHT devices
with a Crystal Cove PMIC in vlv_dsi.c, but as this really is a shortcoming
of the VBT MIPI-sequences, intel_dsi_vbt.c is a better place for this,
so move it there.

This is a preparation patch for adding panel-enable and backlight-enable
GPIO support for BYT devices where instead of the PMIC the SoC is used
for backlight control.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191216205122.1850923-3-hdegoede@redhat.com
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