Skip to content

Commit 73c0fca

Browse files
mmustaffjnikula
authored andcommitted
drm/i915: Enable VBT based BL control for DP
Currently, BXT_PP is hardcoded with value '0'. It practically disabled eDP backlight on MRB (BXT) platform. This patch will tell which BXT_PP registers (there are two set of PP_CONTROL in the spec) to be used as defined in VBT (Video Bios Timing table) and this will enabled eDP backlight controller on MRB (BXT) platform. v2: - Remove unnecessary information in commit message. - Assign vbt.backlight.controller to a backlight_controller variable and return the variable value. v3: - Rebased to latest code base. - updated commit title. Signed-off-by: Mustamin B Mustaffa <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 128326a commit 73c0fca

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

drivers/gpu/drm/i915/intel_dp.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -654,19 +654,15 @@ static int
654654
bxt_power_sequencer_idx(struct intel_dp *intel_dp)
655655
{
656656
struct drm_i915_private *dev_priv = to_i915(intel_dp_to_dev(intel_dp));
657+
int backlight_controller = dev_priv->vbt.backlight.controller;
657658

658659
lockdep_assert_held(&dev_priv->pps_mutex);
659660

660661
/* We should never land here with regular DP ports */
661662
WARN_ON(!intel_dp_is_edp(intel_dp));
662663

663-
/*
664-
* TODO: BXT has 2 PPS instances. The correct port->PPS instance
665-
* mapping needs to be retrieved from VBT, for now just hard-code to
666-
* use instance #0 always.
667-
*/
668664
if (!intel_dp->pps_reset)
669-
return 0;
665+
return backlight_controller;
670666

671667
intel_dp->pps_reset = false;
672668

@@ -676,7 +672,7 @@ bxt_power_sequencer_idx(struct intel_dp *intel_dp)
676672
*/
677673
intel_dp_init_panel_power_sequencer_registers(intel_dp, false);
678674

679-
return 0;
675+
return backlight_controller;
680676
}
681677

682678
typedef bool (*vlv_pipe_check)(struct drm_i915_private *dev_priv,

0 commit comments

Comments
 (0)