diff mbox

[1/4] intel: Add Cannonlake PCI IDs for U-skus.

Message ID 1498772058-902-1-git-send-email-rodrigo.vivi@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Rodrigo Vivi June 29, 2017, 9:34 p.m. UTC
Platform enabling and its power-on are organized in different
skus (U x Y x S x H, etc). So instead of organizing it in
GT1 x GT2 x GT3 let's also use the platform sku.

This is a copy of merged i915's
commit e918d79a5d0a ("drm/i915/cnl: Add Cannonlake PCI IDs for U-skus.")

v2: Remove PCI IDs for SKU not mentioned in spec.
v3: Add kernel commit id for reference.

Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Cc: Clinton Taylor <clinton.a.taylor@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
 intel/intel_chipset.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Clint Taylor June 29, 2017, 10:15 p.m. UTC | #1
Reviewed-by: Clinton Taylor <clinton.a.taylor@intel.com>

-Clint



On 06/29/2017 02:34 PM, Rodrigo Vivi wrote:
> Platform enabling and its power-on are organized in different
> skus (U x Y x S x H, etc). So instead of organizing it in
> GT1 x GT2 x GT3 let's also use the platform sku.
>
> This is a copy of merged i915's
> commit e918d79a5d0a ("drm/i915/cnl: Add Cannonlake PCI IDs for U-skus.")
>
> v2: Remove PCI IDs for SKU not mentioned in spec.
> v3: Add kernel commit id for reference.
>
> Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
> Cc: Clinton Taylor <clinton.a.taylor@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
>   intel/intel_chipset.h | 13 +++++++++++++
>   1 file changed, 13 insertions(+)
>
> diff --git a/intel/intel_chipset.h b/intel/intel_chipset.h
> index 891b50f..e6b49d7 100644
> --- a/intel/intel_chipset.h
> +++ b/intel/intel_chipset.h
> @@ -233,6 +233,11 @@
>   #define PCI_CHIP_COFFEELAKE_U_GT3_3     0x3EA7
>   #define PCI_CHIP_COFFEELAKE_U_GT3_4     0x3EA8
>   
> +#define PCI_CHIP_CANNONLAKE_U_GT2_0	0x5A52
> +#define PCI_CHIP_CANNONLAKE_U_GT2_1	0x5A5A
> +#define PCI_CHIP_CANNONLAKE_U_GT2_2	0x5A42
> +#define PCI_CHIP_CANNONLAKE_U_GT2_3	0x5A4A
> +
>   #define IS_MOBILE(devid)	((devid) == PCI_CHIP_I855_GM || \
>   				 (devid) == PCI_CHIP_I915_GM || \
>   				 (devid) == PCI_CHIP_I945_GM || \
> @@ -496,5 +501,13 @@
>   				 IS_GEN8(dev) || \
>   				 IS_GEN9(dev))
>   
> +#define IS_CNL_U(devid)		((devid) == PCI_CHIP_CANNONLAKE_U_GT2_0 || \
> +				 (devid) == PCI_CHIP_CANNONLAKE_U_GT2_1 || \
> +				 (devid) == PCI_CHIP_CANNONLAKE_U_GT2_2 || \
> +				 (devid) == PCI_CHIP_CANNONLAKE_U_GT2_3)
> +
> +#define IS_CANNONLAKE(devid)	(IS_CNL_U(devid))
> +
> +#define IS_GEN10(devid)		(IS_CANNONLAKE(devid))
>   
>   #endif /* _INTEL_CHIPSET_H */
diff mbox

Patch

diff --git a/intel/intel_chipset.h b/intel/intel_chipset.h
index 891b50f..e6b49d7 100644
--- a/intel/intel_chipset.h
+++ b/intel/intel_chipset.h
@@ -233,6 +233,11 @@ 
 #define PCI_CHIP_COFFEELAKE_U_GT3_3     0x3EA7
 #define PCI_CHIP_COFFEELAKE_U_GT3_4     0x3EA8
 
+#define PCI_CHIP_CANNONLAKE_U_GT2_0	0x5A52
+#define PCI_CHIP_CANNONLAKE_U_GT2_1	0x5A5A
+#define PCI_CHIP_CANNONLAKE_U_GT2_2	0x5A42
+#define PCI_CHIP_CANNONLAKE_U_GT2_3	0x5A4A
+
 #define IS_MOBILE(devid)	((devid) == PCI_CHIP_I855_GM || \
 				 (devid) == PCI_CHIP_I915_GM || \
 				 (devid) == PCI_CHIP_I945_GM || \
@@ -496,5 +501,13 @@ 
 				 IS_GEN8(dev) || \
 				 IS_GEN9(dev))
 
+#define IS_CNL_U(devid)		((devid) == PCI_CHIP_CANNONLAKE_U_GT2_0 || \
+				 (devid) == PCI_CHIP_CANNONLAKE_U_GT2_1 || \
+				 (devid) == PCI_CHIP_CANNONLAKE_U_GT2_2 || \
+				 (devid) == PCI_CHIP_CANNONLAKE_U_GT2_3)
+
+#define IS_CANNONLAKE(devid)	(IS_CNL_U(devid))
+
+#define IS_GEN10(devid)		(IS_CANNONLAKE(devid))
 
 #endif /* _INTEL_CHIPSET_H */