Skip to contentSkip to conversation

lib/cfl: Introduce Coffeelake platform definition.

PATCH In review Rodrigo Vivi 2 participants 3 messages Jun 29, 2017 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/cfl: Introduce Coffeelake platform definition.

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

It is Gen9 graphics based platform on top of CNP PCH.

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

---
 lib/intel_chipset.h     | 2 ++
 lib/intel_device_info.c | 6 ++++++
 2 files changed, 8 insertions(+)
lib/intel_chipset.h +2 -0
index 259b45f..2468890 100644
@@ -64,6 +64,7 @@ struct intel_device_info {
 	bool is_broxton : 1;
 	bool is_kabylake : 1;
 	bool is_geminilake : 1;
+	bool is_coffeelake : 1;
 	const char *codename;
 };
 
@@ -158,6 +159,7 @@ void intel_check_pch(void);
 #define IS_SKYLAKE(devid)	(intel_get_device_info(devid)->is_skylake)
 #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_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)))
lib/intel_device_info.c +6 -0
index 2b0658c..199fa2d 100644
@@ -187,6 +187,12 @@ static const struct intel_device_info intel_geminilake_info = {
 	.codename = "geminilake"
 };
 
+static const struct intel_device_info intel_coffeelake_info = {
+	.gen = BIT(8),
+	.is_coffeelake = true,
+	.codename = "coffeelake"
+};
+
 static const struct pci_id_match intel_device_match[] = {
 	INTEL_I810_IDS(&intel_i810_info),
 	INTEL_I815_IDS(&intel_i815_info),
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/1
#1 lore raw

Identical to other platforms.

Quoted 41 lines · Rodrigo Vivi

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

It is Gen9 graphics based platform on top of CNP PCH.

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

---
  lib/intel_chipset.h     | 2 ++
  lib/intel_device_info.c | 6 ++++++
  2 files changed, 8 insertions(+)
lib/intel_chipset.h +2 -0
index 259b45f..2468890 100644
@@ -64,6 +64,7 @@ struct intel_device_info {
  	bool is_broxton : 1;
  	bool is_kabylake : 1;
  	bool is_geminilake : 1;
+	bool is_coffeelake : 1;
  	const char *codename;
  };
 
@@ -158,6 +159,7 @@ void intel_check_pch(void);
  #define IS_SKYLAKE(devid)	(intel_get_device_info(devid)->is_skylake)
  #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_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)))
lib/intel_device_info.c +0 -0
index 2b0658c..199fa2d 100644
@@ -187,6 +187,12 @@ static const struct intel_device_info intel_geminilake_info = {
  	.codename = "geminilake"
  };

lib/intel_device_info.c static const struct intel_device_info intel_geminilake_info = { · line 198

Quoted 10 lines
lib/intel_device_info.c +6 -0
 
+static const struct intel_device_info intel_coffeelake_info = {
+	.gen = BIT(8),
+	.is_coffeelake = true,
+	.codename = "coffeelake"
+};
+
  static const struct pci_id_match intel_device_match[] = {
  	INTEL_I810_IDS(&intel_i810_info),
  	INTEL_I815_IDS(&intel_i815_info),

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw

patch merged. thanks for the review.

Quoted 47 lines · Clint Taylor

Identical to other platforms.

Quoted 42 lines · Rodrigo Vivi

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

It is Gen9 graphics based platform on top of CNP PCH.

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

---
  lib/intel_chipset.h     | 2 ++
  lib/intel_device_info.c | 6 ++++++
  2 files changed, 8 insertions(+)
lib/intel_chipset.h +2 -0
index 259b45f..2468890 100644
@@ -64,6 +64,7 @@ struct intel_device_info {
  	bool is_broxton : 1;
  	bool is_kabylake : 1;
  	bool is_geminilake : 1;
+	bool is_coffeelake : 1;
  	const char *codename;
  };
 
@@ -158,6 +159,7 @@ void intel_check_pch(void);
  #define IS_SKYLAKE(devid)	(intel_get_device_info(devid)->is_skylake)
  #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_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)))
lib/intel_device_info.c +0 -0
index 2b0658c..199fa2d 100644
@@ -187,6 +187,12 @@ static const struct intel_device_info intel_geminilake_info = {
  	.codename = "geminilake"
  };
 
Quoted 10 lines

lib/intel_device_info.c static const struct intel_device_info intel_geminilake_info = { · line 198

Quoted 9 lines
lib/intel_device_info.c +6 -0
+static const struct intel_device_info intel_coffeelake_info = {
+	.gen = BIT(8),
+	.is_coffeelake = true,
+	.codename = "coffeelake"
+};
+
  static const struct pci_id_match intel_device_match[] = {
  	INTEL_I810_IDS(&intel_i810_info),
  	INTEL_I815_IDS(&intel_i815_info),

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx