aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2012-11-20 12:12:07 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-11-21 11:47:08 -0500
commit17a303ec7cd5a245c621b6d0898eb3ef9fc96329 (patch)
tree35d90637b3b1740526740d32b23bbc8ef73af0e7 /drivers/gpu/drm/i915/i915_drv.h
parentc54e59046c825266ca0decdac47fcfcf902b6cd6 (diff)
drm/i915: make DP work on LPT-LP machines
We need to enable a special bit, otherwise none of the DP functions requiring the PCH will work. Version 2: store the PCH ID inside dev_priv, as suggested by Daniel Vetter. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> 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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index b25df10b0b5c..669afcabe3b1 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -737,6 +737,7 @@ typedef struct drm_i915_private {
737 737
738 /* PCH chipset type */ 738 /* PCH chipset type */
739 enum intel_pch pch_type; 739 enum intel_pch pch_type;
740 unsigned short pch_id;
740 741
741 unsigned long quirks; 742 unsigned long quirks;
742 743
@@ -1205,6 +1206,13 @@ struct drm_i915_file_private {
1205 1206
1206#define HAS_PIPE_CONTROL(dev) (INTEL_INFO(dev)->gen >= 5) 1207#define HAS_PIPE_CONTROL(dev) (INTEL_INFO(dev)->gen >= 5)
1207 1208
1209#define INTEL_PCH_DEVICE_ID_MASK 0xff00
1210#define INTEL_PCH_IBX_DEVICE_ID_TYPE 0x3b00
1211#define INTEL_PCH_CPT_DEVICE_ID_TYPE 0x1c00
1212#define INTEL_PCH_PPT_DEVICE_ID_TYPE 0x1e00
1213#define INTEL_PCH_LPT_DEVICE_ID_TYPE 0x8c00
1214#define INTEL_PCH_LPT_LP_DEVICE_ID_TYPE 0x9c00
1215
1208#define INTEL_PCH_TYPE(dev) (((struct drm_i915_private *)(dev)->dev_private)->pch_type) 1216#define INTEL_PCH_TYPE(dev) (((struct drm_i915_private *)(dev)->dev_private)->pch_type)
1209#define HAS_PCH_LPT(dev) (INTEL_PCH_TYPE(dev) == PCH_LPT) 1217#define HAS_PCH_LPT(dev) (INTEL_PCH_TYPE(dev) == PCH_LPT)
1210#define HAS_PCH_CPT(dev) (INTEL_PCH_TYPE(dev) == PCH_CPT) 1218#define HAS_PCH_CPT(dev) (INTEL_PCH_TYPE(dev) == PCH_CPT)