[PATCH i-g-t 1/5] lib/cnl: Introduce Cannonlake platform defition.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cannonlake is a Intel® Processor containing Intel® HD Graphics
following Kabylake.

It is Gen10.

Let's start by adding the platform definition based on previous
platforms.

On following patches we will start adding PCI IDs and the
platform specific changes.

Signed-off-by: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx>
---
 lib/intel_chipset.h     | 3 +++
 lib/intel_device_info.c | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 2468890..7fc9b3b 100644
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -65,6 +65,7 @@ struct intel_device_info {
 	bool is_kabylake : 1;
 	bool is_geminilake : 1;
 	bool is_coffeelake : 1;
+	bool is_cannonlake : 1;
 	const char *codename;
 };
 
@@ -160,6 +161,7 @@ void intel_check_pch(void);
 #define IS_BROXTON(devid)	(intel_get_device_info(devid)->is_broxton)
 #define IS_GEMINILAKE(devid)	(intel_get_device_info(devid)->is_geminilake)
 #define IS_COFFEELAKE(devid)	(intel_get_device_info(devid)->is_coffeelake)
+#define IS_CANNONLAKE(devid)	(intel_get_device_info(devid)->is_cannonlake)
 
 #define IS_GEN(devid, x)	(intel_get_device_info(devid)->gen & (1u << ((x)-1)))
 #define AT_LEAST_GEN(devid, x)	(intel_get_device_info(devid)->gen & -(1u << ((x)-1)))
@@ -172,6 +174,7 @@ void intel_check_pch(void);
 #define IS_GEN7(devid)		IS_GEN(devid, 7)
 #define IS_GEN8(devid)		IS_GEN(devid, 8)
 #define IS_GEN9(devid)		IS_GEN(devid, 9)
+#define IS_GEN10(devid)		IS_GEN(devid, 10)
 
 #define IS_MOBILE(devid)	(intel_get_device_info(devid)->is_mobile)
 #define IS_965(devid)		AT_LEAST_GEN(devid, 4)
diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
index 2c46aba..dda5d11 100644
--- a/lib/intel_device_info.c
+++ b/lib/intel_device_info.c
@@ -193,6 +193,12 @@ static const struct intel_device_info intel_coffeelake_info = {
 	.codename = "coffeelake"
 };
 
+static const struct intel_device_info intel_cannonlake_info = {
+	.gen = BIT(9),
+	.is_cannonlake = true,
+	.codename = "cannonlake"
+};
+
 static const struct pci_id_match intel_device_match[] = {
 	INTEL_I810_IDS(&intel_i810_info),
 	INTEL_I815_IDS(&intel_i815_info),
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux