]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915: Turn HAS_FPGA_DBG_UNCLAIMED into a device_info flag
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 22 Apr 2013 17:40:41 +0000 (18:40 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Apr 2013 15:47:37 +0000 (17:47 +0200)
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h

index 896b90430ba9fcb876070ef60a05994dc5b5b39c..624cdfcc1ba3a807081ff320c47fb87691f5f47d 100644 (file)
@@ -309,6 +309,7 @@ static const struct intel_device_info intel_haswell_d_info = {
        GEN7_FEATURES,
        .is_haswell = 1,
        .has_ddi = 1,
+       .has_fpga_dbg = 1,
 };
 
 static const struct intel_device_info intel_haswell_m_info = {
@@ -316,6 +317,7 @@ static const struct intel_device_info intel_haswell_m_info = {
        .is_haswell = 1,
        .is_mobile = 1,
        .has_ddi = 1,
+       .has_fpga_dbg = 1,
 };
 
 static const struct pci_device_id pciidlist[] = {              /* aka */
index ffd325c7040755bd66905f150c6ce800b08d35ca..a4234a837032c166b9431e9c6e32c5ca85938c8c 100644 (file)
@@ -358,7 +358,8 @@ struct drm_i915_gt_funcs {
        func(has_bsd_ring) sep \
        func(has_blt_ring) sep \
        func(has_llc) sep \
-       func(has_ddi)
+       func(has_ddi) sep \
+       func(has_fpga_dbg)
 
 #define DEFINE_FLAG(name) u8 name:1
 #define SEP_SEMICOLON ;
@@ -1370,7 +1371,7 @@ struct drm_i915_file_private {
 
 #define HAS_DDI(dev)           (INTEL_INFO(dev)->has_ddi)
 #define HAS_POWER_WELL(dev)    (IS_HASWELL(dev))
-#define HAS_FPGA_DBG_UNCLAIMED(dev)    (IS_HASWELL(dev))
+#define HAS_FPGA_DBG_UNCLAIMED(dev)    (INTEL_INFO(dev)->has_fpga_dbg)
 
 #define INTEL_PCH_DEVICE_ID_MASK               0xff00
 #define INTEL_PCH_IBX_DEVICE_ID_TYPE           0x3b00