drm/i915: Do PCH and uncore init earlier
authorBen Widawsky <benjamin.widawsky@intel.com>
Tue, 8 Oct 2013 23:31:03 +0000 (16:31 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 10 Oct 2013 10:47:12 +0000 (12:47 +0200)
commitc3d685a7a5cd9f18865a717468d2b02092dcefdd
treed9127714640801df6a5643a70da8339b707a2db7
parent5ade2c2f5813733f23bbb2f21e8ba5c3f8474a2b
drm/i915: Do PCH and uncore init earlier

For future platforms we'll need to initialize our MMIO function pointers
even earlier. Specifically, we'll need to be able to have register
reads/writes at GTT initialization (in i915_gem_gtt_init). Similarly,
these platforms also have MMIO differences based on the PCH id, so
while moving stuff around, also move the PCH initialization.

CC: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
[danvet: Mention the function where we need register access.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c