diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2013-04-05 16:12:44 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-04-08 14:53:06 -0400 |
commit | ce1bb329795c3efc4bfd8846ee4ef1798536307a (patch) | |
tree | ab9f934c7975ac41266278bd01ae77f1c8cf8c9c | |
parent | 88a2b2a32d71aad6d8dcd843294b00a204faa66b (diff) |
drm/i915: Set PCH_NOP
Set up PCH_NOP when we match a certain platform.
v2: Just do a num_pipes check + comment instead of trying to check the
platform (Daniel)
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 3b4b9c09a20b..88d78e39bf6d 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++ b/drivers/gpu/drm/i915/i915_drv.c | |||
@@ -397,6 +397,15 @@ void intel_detect_pch(struct drm_device *dev) | |||
397 | struct drm_i915_private *dev_priv = dev->dev_private; | 397 | struct drm_i915_private *dev_priv = dev->dev_private; |
398 | struct pci_dev *pch; | 398 | struct pci_dev *pch; |
399 | 399 | ||
400 | /* In all current cases, num_pipes is equivalent to the PCH_NOP setting | ||
401 | * (which really amounts to a PCH but no South Display). | ||
402 | */ | ||
403 | if (INTEL_INFO(dev)->num_pipes == 0) { | ||
404 | dev_priv->pch_type = PCH_NOP; | ||
405 | dev_priv->num_pch_pll = 0; | ||
406 | return; | ||
407 | } | ||
408 | |||
400 | /* | 409 | /* |
401 | * The reason to probe ISA bridge instead of Dev31:Fun0 is to | 410 | * The reason to probe ISA bridge instead of Dev31:Fun0 is to |
402 | * make graphics device passthrough work easy for VMM, that only | 411 | * make graphics device passthrough work easy for VMM, that only |