diff options
author | 2017-09-13 17:08:54 +0300 | |
---|---|---|
committer | 2017-10-10 17:20:00 +0300 | |
commit | dfa311f0d8e2bbd4ba97344ac4a2eb6e810fc0e6 (patch) | |
tree | c5a014a906a06eecf5945a70d78262804ac76828 /drivers/gpu/drm/i915/intel_display.c | |
parent | drm/i915: Use enum pipe for PCH transcoders (diff) | |
download | wireguard-linux-dfa311f0d8e2bbd4ba97344ac4a2eb6e810fc0e6.tar.xz wireguard-linux-dfa311f0d8e2bbd4ba97344ac4a2eb6e810fc0e6.zip |
drm/i915: Parametrize CBR_DPLLBMD_PIPE defines
Apply a bit of polish by parametrizing the CBR_DPLLBMD_PIPE defines.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170913140900.6972-3-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to '')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 57d886cece16..c96d02ce1f2f 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -1539,7 +1539,7 @@ static void chv_enable_pll(struct intel_crtc *crtc, * DPLLCMD is AWOL. Use chicken bits to propagate * the value from DPLLBMD to either pipe B or C. */ - I915_WRITE(CBR4_VLV, pipe == PIPE_B ? CBR_DPLLBMD_PIPE_B : CBR_DPLLBMD_PIPE_C); + I915_WRITE(CBR4_VLV, CBR_DPLLBMD_PIPE(pipe)); I915_WRITE(DPLL_MD(PIPE_B), pipe_config->dpll_hw_state.dpll_md); I915_WRITE(CBR4_VLV, 0); dev_priv->chv_dpll_md[pipe] = pipe_config->dpll_hw_state.dpll_md; |