summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-03-23 23:43:36 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-03-25 22:33:33 +0200
commit110447fc2f30c22dcaa1936828cb33cec5b72272 (patch)
treee5c4384904b591578e7ce1b768804df958c53e62 /drivers/gpu/drm/i915/i915_drv.h
parenteef4eacb6ed3940b4a15daf3fbd060243e54056c (diff)
downloadop-kernel-dev-110447fc2f30c22dcaa1936828cb33cec5b72272.zip
op-kernel-dev-110447fc2f30c22dcaa1936828cb33cec5b72272.tar.gz
drm/i915: add an explict mmio base for gpio/gmbus io
Again, Valleyview modes these around, so make the mmio base more explicit to consolidate the base address computations to one HAS_PCH_SPLIT check. v2: Fix up the PCH_SPLIT braino ... it actually works that way round. Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index e16f4d6..9c75a7b 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -333,6 +333,11 @@ typedef struct drm_i915_private {
* controller on different i2c buses. */
struct mutex gmbus_mutex;
+ /**
+ * Base address of the gmbus and gpio block.
+ */
+ uint32_t gpio_mmio_base;
+
struct pci_dev *bridge_dev;
struct intel_ring_buffer ring[I915_NUM_RINGS];
uint32_t next_seqno;
OpenPOWER on IntegriCloud