aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_reg.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-01-25 14:44:45 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-01-26 11:32:03 -0500
commit56a12a509296c87d6f149be86c6694d312b21d35 (patch)
treed50eb6be8db694c3ef35884b7d1c28991d83a6d4 /drivers/gpu/drm/i915/i915_reg.h
parent67cfc2032b516e44b972abe30209234343e1f145 (diff)
drm/i915: Include display_mmio_offset in sequencer index/data registers
SR01 needs to be touched to disable VGA on non-UMS setups too. So the sequencer registers need to include the appripriate offset on VLV. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.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.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 452cb18818dc..5944b4b69031 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -141,9 +141,15 @@
141#define VGA_MSR_MEM_EN (1<<1) 141#define VGA_MSR_MEM_EN (1<<1)
142#define VGA_MSR_CGA_MODE (1<<0) 142#define VGA_MSR_CGA_MODE (1<<0)
143 143
144#define VGA_SR_INDEX 0x3c4 144/*
145 * SR01 is the only VGA register touched on non-UMS setups.
146 * VLV doesn't do UMS, so the sequencer index/data registers
147 * are the only VGA registers which need to include
148 * display_mmio_offset.
149 */
150#define VGA_SR_INDEX (dev_priv->info->display_mmio_offset + 0x3c4)
145#define SR01 1 151#define SR01 1
146#define VGA_SR_DATA 0x3c5 152#define VGA_SR_DATA (dev_priv->info->display_mmio_offset + 0x3c5)
147 153
148#define VGA_AR_INDEX 0x3c0 154#define VGA_AR_INDEX 0x3c0
149#define VGA_AR_VID_EN (1<<5) 155#define VGA_AR_VID_EN (1<<5)