summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_reg.h
diff options
context:
space:
mode:
authorDamien Lespiau2015-02-03 15:25:14 +0100
committerDaniel Vetter2015-02-13 23:28:30 +0100
commit2db59d530777b76f6b7944e0bfa43c9fede10b10 (patch)
tree95cb24dcc2eaf95058dde5dc2d685b86216ca008 /drivers/gpu/drm/i915/i915_reg.h
parentdrm/i915: Remove the IS_SNB_GT1 define (diff)
downloadkernel-qcow2-linux-2db59d530777b76f6b7944e0bfa43c9fede10b10.tar.gz
kernel-qcow2-linux-2db59d530777b76f6b7944e0bfa43c9fede10b10.tar.xz
kernel-qcow2-linux-2db59d530777b76f6b7944e0bfa43c9fede10b10.zip
drm/i915: Detect eDRAM with the enabled bit only
At the moment we compare the whole EDRAM_PRESENT/EDRAMCAP register value to 1 while EDRAM_PRESENT is only bit 0 (the rest may be used to describe eDRAM capabilities). To be more future proof, only look at bit 0 to detect eDRAM presence. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index f13e4e4f29e2..5de6cf450e1a 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -5994,6 +5994,7 @@ enum skl_disp_power_wells {
#define HSW_IDICR 0x9008
#define IDIHASHMSK(x) (((x) & 0x3f) << 16)
#define HSW_EDRAM_PRESENT 0x120010
+#define EDRAM_ENABLED 0x1
#define GEN6_UCGCTL1 0x9400
# define GEN6_EU_TCUNIT_CLOCK_GATE_DISABLE (1 << 16)