Commit e3589908 authored by Damien Lespiau's avatar Damien Lespiau Committed by Daniel Vetter

drm/i915: Consolidate FUSE_STRAP in one set of defines

We had 2 set of defines for the same register, so make it one.
Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 22d3fd46
...@@ -4110,13 +4110,14 @@ ...@@ -4110,13 +4110,14 @@
#define ILK_ELPIN_409_SELECT (1 << 25) #define ILK_ELPIN_409_SELECT (1 << 25)
#define ILK_DPARB_GATE (1<<22) #define ILK_DPARB_GATE (1<<22)
#define ILK_VSDPFD_FULL (1<<21) #define ILK_VSDPFD_FULL (1<<21)
#define ILK_DISPLAY_CHICKEN_FUSES 0x42014 #define FUSE_STRAP 0x42014
#define ILK_INTERNAL_GRAPHICS_DISABLE (1<<31) #define ILK_INTERNAL_GRAPHICS_DISABLE (1 << 31)
#define ILK_INTERNAL_DISPLAY_DISABLE (1<<30) #define ILK_INTERNAL_DISPLAY_DISABLE (1 << 30)
#define ILK_DISPLAY_DEBUG_DISABLE (1<<29) #define ILK_DISPLAY_DEBUG_DISABLE (1 << 29)
#define ILK_HDCP_DISABLE (1<<25) #define ILK_HDCP_DISABLE (1 << 25)
#define ILK_eDP_A_DISABLE (1<<24) #define ILK_eDP_A_DISABLE (1 << 24)
#define ILK_DESKTOP (1<<23) #define HSW_CDCLK_LIMIT (1 << 24)
#define ILK_DESKTOP (1 << 23)
#define ILK_DSPCLK_GATE_D 0x42020 #define ILK_DSPCLK_GATE_D 0x42020
#define ILK_VRHUNIT_CLOCK_GATE_DISABLE (1 << 28) #define ILK_VRHUNIT_CLOCK_GATE_DISABLE (1 << 28)
...@@ -4179,9 +4180,6 @@ ...@@ -4179,9 +4180,6 @@
#define HSW_SCRATCH1 0xb038 #define HSW_SCRATCH1 0xb038
#define HSW_SCRATCH1_L3_DATA_ATOMICS_DISABLE (1<<27) #define HSW_SCRATCH1_L3_DATA_ATOMICS_DISABLE (1<<27)
#define HSW_FUSE_STRAP 0x42014
#define HSW_CDCLK_LIMIT (1 << 24)
/* PCH */ /* PCH */
/* south display engine interrupt: IBX */ /* south display engine interrupt: IBX */
......
...@@ -1415,7 +1415,7 @@ int intel_ddi_get_cdclk_freq(struct drm_i915_private *dev_priv) ...@@ -1415,7 +1415,7 @@ int intel_ddi_get_cdclk_freq(struct drm_i915_private *dev_priv)
if (lcpll & LCPLL_CD_SOURCE_FCLK) { if (lcpll & LCPLL_CD_SOURCE_FCLK) {
return 800000; return 800000;
} else if (I915_READ(HSW_FUSE_STRAP) & HSW_CDCLK_LIMIT) { } else if (I915_READ(FUSE_STRAP) & HSW_CDCLK_LIMIT) {
return 450000; return 450000;
} else if (freq == LCPLL_CLK_FREQ_450) { } else if (freq == LCPLL_CLK_FREQ_450) {
return 450000; return 450000;
......
...@@ -10373,8 +10373,7 @@ static bool has_edp_a(struct drm_device *dev) ...@@ -10373,8 +10373,7 @@ static bool has_edp_a(struct drm_device *dev)
if ((I915_READ(DP_A) & DP_DETECTED) == 0) if ((I915_READ(DP_A) & DP_DETECTED) == 0)
return false; return false;
if (IS_GEN5(dev) && if (IS_GEN5(dev) && (I915_READ(FUSE_STRAP) & ILK_eDP_A_DISABLE))
(I915_READ(ILK_DISPLAY_CHICKEN_FUSES) & ILK_eDP_A_DISABLE))
return false; return false;
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment