aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_reg.h
diff options
context:
space:
mode:
authorChon Ming Lee <chon.ming.lee@intel.com>2014-04-09 06:28:15 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-05-12 13:50:12 -0400
commit00fc31b72ea773fa966a486e54ca379045bd2cfd (patch)
tree822526ba6d94bd360a2890e182913c44fb7a9cc2 /drivers/gpu/drm/i915/i915_reg.h
parenta09cadddde3819dfbb04262f3db12082d4c7b695 (diff)
drm/i915/chv: Update Cherryview DPLL changes to support Port D. v2
The additional DPLL registers added to support Port D. Besides, add some new PHY control and status registers based on B-spec. v2: Based on Ville review - Corrected DPIO_PHY_STATUS offset and name. - Rebase based on upstream change after introduce enum dpio_phy and enum dpio_channel. v3: Rebased on top of Antti's 3-pipe prep patch. Note that the new offsets for the DPLL registers aren't in place yet, so this introduces a slight regression. But since 3 pipe support isn't fully enabled yet anyaway in -internal this shouldn't matter too much. Signed-off-by: Chon Ming Lee <chon.ming.lee@intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r--drivers/gpu/drm/i915/i915_reg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 218079d31804..17e139e9cbbc 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -29,6 +29,8 @@
29#define _TRANSCODER(tran, a, b) ((a) + (tran)*((b)-(a))) 29#define _TRANSCODER(tran, a, b) ((a) + (tran)*((b)-(a)))
30 30
31#define _PORT(port, a, b) ((a) + (port)*((b)-(a))) 31#define _PORT(port, a, b) ((a) + (port)*((b)-(a)))
32#define _PIPE3(pipe, a, b, c) (pipe < 2 ? _PIPE(pipe, a, b) : c)
33#define _PORT3(port, a, b, c) (port < 2 ? _PORT(port, a, b) : c)
32 34
33#define _MASKED_BIT_ENABLE(a) (((a) << 16) | (a)) 35#define _MASKED_BIT_ENABLE(a) (((a) << 16) | (a))
34#define _MASKED_BIT_DISABLE(a) ((a) << 16) 36#define _MASKED_BIT_DISABLE(a) ((a) << 16)
@@ -1417,6 +1419,10 @@ enum punit_power_well {
1417#define DPLL_PORTB_READY_MASK (0xf) 1419#define DPLL_PORTB_READY_MASK (0xf)
1418 1420
1419#define DPLL_FPA01_P1_POST_DIV_MASK_I830 0x001f0000 1421#define DPLL_FPA01_P1_POST_DIV_MASK_I830 0x001f0000
1422
1423/* Additional CHV pll/phy registers */
1424#define DPIO_PHY_STATUS (VLV_DISPLAY_BASE + 0x6240)
1425#define DPLL_PORTD_READY_MASK (0xf)
1420/* 1426/*
1421 * The i830 generation, in LVDS mode, defines P1 as the bit number set within 1427 * The i830 generation, in LVDS mode, defines P1 as the bit number set within
1422 * this field (only one bit may be set). 1428 * this field (only one bit may be set).