diff mbox

[07/16] drm/i915: add PantherPoint PCH ID

Message ID 1303861134-8762-8-git-send-email-jbarnes@virtuousgeek.org (mailing list archive)
State New, archived
Headers show

Commit Message

Jesse Barnes April 26, 2011, 11:38 p.m. UTC
We can treat PantherPoint as CougarPoint as far as display goes.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
---
 drivers/gpu/drm/i915/i915_drv.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Comments

Keith Packard April 27, 2011, 3:05 p.m. UTC | #1
On Tue, 26 Apr 2011 16:38:45 -0700, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:

> We can treat PantherPoint as CougarPoint as far as display goes.

I'll note in passing that pch_type is never set to PCH_IBX explicitly,
which only works because PCH_IBX is zero.
Jesse Barnes April 27, 2011, 9:13 p.m. UTC | #2
On Wed, 27 Apr 2011 08:05:37 -0700
Keith Packard <keithp@keithp.com> wrote:

> On Tue, 26 Apr 2011 16:38:45 -0700, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> 
> > We can treat PantherPoint as CougarPoint as far as display goes.
> 
> I'll note in passing that pch_type is never set to PCH_IBX explicitly,
> which only works because PCH_IBX is zero.

Yeah, I don't like that either, I can fix that up in a separate patch.

Jesse
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 016290e..53f4f14 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -255,6 +255,7 @@  MODULE_DEVICE_TABLE(pci, pciidlist);
 
 #define INTEL_PCH_DEVICE_ID_MASK	0xff00
 #define INTEL_PCH_CPT_DEVICE_ID_TYPE	0x1c00
+#define INTEL_PCH_PPT_DEVICE_ID_TYPE	0x1e00
 
 void intel_detect_pch (struct drm_device *dev)
 {
@@ -276,6 +277,9 @@  void intel_detect_pch (struct drm_device *dev)
 			if (id == INTEL_PCH_CPT_DEVICE_ID_TYPE) {
 				dev_priv->pch_type = PCH_CPT;
 				DRM_DEBUG_KMS("Found CougarPoint PCH\n");
+			} else if (id == INTEL_PCH_PPT_DEVICE_ID_TYPE) {
+				dev_priv->pch_type = PCH_CPT;
+				DRM_ERROR("Found PatherPoint PCH\n");
 			}
 		}
 		pci_dev_put(pch);