Skip to content

Commit 65e472e

Browse files
committed
drm/i915: Don't register the CRT connector when it's fused off on LPT-H
LPT-H has a strap bit for fused off CRT block. Check it to see if we should register the CRT connector or not. Supposedly this also forces the ADAP enable bit to 0, so the detection we added in commit 6c03a6b ("drm/i915: Don't register CRT connector when it's fused off") should already catch it, but checking the fuse bit should at least do no harm. v2: Use HAS_PCH_LPT_H() (Paulo) Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1449005335-15192-1-git-send-email-ville.syrjala@linux.intel.com
1 parent 4e7f8cf commit 65e472e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/gpu/drm/i915/i915_reg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7556,6 +7556,7 @@ enum skl_disp_power_wells {
75567556
#define SFUSE_STRAP _MMIO(0xc2014)
75577557
#define SFUSE_STRAP_FUSE_LOCK (1<<13)
75587558
#define SFUSE_STRAP_DISPLAY_DISABLED (1<<7)
7559+
#define SFUSE_STRAP_CRT_DISABLED (1<<6)
75597560
#define SFUSE_STRAP_DDIB_DETECTED (1<<2)
75607561
#define SFUSE_STRAP_DDIC_DETECTED (1<<1)
75617562
#define SFUSE_STRAP_DDID_DETECTED (1<<0)

drivers/gpu/drm/i915/intel_display.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14257,6 +14257,9 @@ static bool intel_crt_present(struct drm_device *dev)
1425714257
if (IS_CHERRYVIEW(dev))
1425814258
return false;
1425914259

14260+
if (HAS_PCH_LPT_H(dev) && I915_READ(SFUSE_STRAP) & SFUSE_STRAP_CRT_DISABLED)
14261+
return false;
14262+
1426014263
if (IS_VALLEYVIEW(dev) && !dev_priv->vbt.int_crt_support)
1426114264
return false;
1426214265

0 commit comments

Comments
 (0)