* [PATCH i-g-t] lib/kbl: Add Kabylake PCI IDs
@ 2015-10-05 22:48 Rodrigo Vivi
0 siblings, 0 replies; only message in thread
From: Rodrigo Vivi @ 2015-10-05 22:48 UTC (permalink / raw)
To: intel-gfx; +Cc: Rodrigo Vivi
Also, following kernel definition Kabylake is Skylake.
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
---
lib/intel_chipset.h | 47 ++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 46 insertions(+), 1 deletion(-)
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 7f611ed..6fcc244 100644
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -206,6 +206,25 @@ void intel_check_pch(void);
#define PCI_CHIP_SKYLAKE_SRV_GT1 0x190A
#define PCI_CHIP_SKYLAKE_WKS_GT2 0x191D
+#define PCI_CHIP_KABYLAKE_ULT_GT2 0x5916
+#define PCI_CHIP_KABYLAKE_ULT_GT1_5 0x5913
+#define PCI_CHIP_KABYLAKE_ULT_GT1 0x5906
+#define PCI_CHIP_KABYLAKE_ULT_GT3 0x5926
+#define PCI_CHIP_KABYLAKE_ULT_GT2F 0x5921
+#define PCI_CHIP_KABYLAKE_ULX_GT1_5 0x5915
+#define PCI_CHIP_KABYLAKE_ULX_GT1 0x590E
+#define PCI_CHIP_KABYLAKE_ULX_GT2 0x591E
+#define PCI_CHIP_KABYLAKE_DT_GT2 0x5912
+#define PCI_CHIP_KABYLAKE_DT_GT1_5 0x5917
+#define PCI_CHIP_KABYLAKE_DT_GT1 0x5902
+#define PCI_CHIP_KABYLAKE_HALO_GT2 0x591B
+#define PCI_CHIP_KABYLAKE_HALO_GT3 0x592B
+#define PCI_CHIP_KABYLAKE_HALO_GT1 0x590B
+#define PCI_CHIP_KABYLAKE_SRV_GT2 0x591A
+#define PCI_CHIP_KABYLAKE_SRV_GT3 0x592A
+#define PCI_CHIP_KABYLAKE_SRV_GT1 0x590A
+#define PCI_CHIP_KABYLAKE_WKS_GT2 0x591D
+
#define PCI_CHIP_BROXTON_0 0x0A84
#define PCI_CHIP_BROXTON_1 0x1A84
#define PCI_CHIP_BROXTON_2 0x5A84
@@ -390,7 +409,33 @@ void intel_check_pch(void);
(devid) == PCI_CHIP_SKYLAKE_HALO_GT3 || \
(devid) == PCI_CHIP_SKYLAKE_SRV_GT3)
-#define IS_SKYLAKE(devid) (IS_SKL_GT1(devid) || \
+#define IS_KBL_GT1(devid) ((devid) == PCI_CHIP_KABYLAKE_ULT_GT1_5|| \
+ (devid) == PCI_CHIP_KABYLAKE_ULX_GT1_5|| \
+ (devid) == PCI_CHIP_KABYLAKE_DT_GT1_5|| \
+ (devid) == PCI_CHIP_KABYLAKE_ULT_GT1|| \
+ (devid) == PCI_CHIP_KABYLAKE_ULX_GT1|| \
+ (devid) == PCI_CHIP_KABYLAKE_DT_GT1|| \
+ (devid) == PCI_CHIP_KABYLAKE_HALO_GT1|| \
+ (devid) == PCI_CHIP_KABYLAKE_SRV_GT1)
+
+#define IS_KBL_GT2(devid) ((devid) == PCI_CHIP_KABYLAKE_ULT_GT2|| \
+ (devid) == PCI_CHIP_KABYLAKE_ULT_GT2F|| \
+ (devid) == PCI_CHIP_KABYLAKE_ULX_GT2|| \
+ (devid) == PCI_CHIP_KABYLAKE_DT_GT2|| \
+ (devid) == PCI_CHIP_KABYLAKE_HALO_GT2|| \
+ (devid) == PCI_CHIP_KABYLAKE_SRV_GT2|| \
+ (devid) == PCI_CHIP_KABYLAKE_WKS_GT2)
+
+#define IS_KBL_GT3(devid) ((devid) == PCI_CHIP_KABYLAKE_ULT_GT3|| \
+ (devid) == PCI_CHIP_KABYLAKE_HALO_GT3|| \
+ (devid) == PCI_CHIP_KABYLAKE_SRV_GT3)
+
+#define IS_KABYLAKE(devid) (IS_KBL_GT1(devid) || \
+ IS_KBL_GT2(devid) || \
+ IS_KBL_GT3(devid))
+
+#define IS_SKYLAKE(devid) (IS_KABYLAKE(devid) || \
+ IS_SKL_GT1(devid) || \
IS_SKL_GT2(devid) || \
IS_SKL_GT3(devid))
--
2.4.3
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-05 22:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-05 22:48 [PATCH i-g-t] lib/kbl: Add Kabylake PCI IDs Rodrigo Vivi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.