diff mbox

[i-g-t,2/2] lib/intel_chipset: Add geminilake platform definition

Message ID 1482237231-31597-2-git-send-email-ander.conselvan.de.oliveira@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ander Conselvan de Oliveira Dec. 20, 2016, 12:33 p.m. UTC
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
---
 lib/intel_chipset.h     | 2 ++
 lib/intel_device_info.c | 8 ++++++++
 2 files changed, 10 insertions(+)
diff mbox

Patch

diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 3c1260b..259b45f 100644
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h
@@ -63,6 +63,7 @@  struct intel_device_info {
 	bool is_skylake : 1;
 	bool is_broxton : 1;
 	bool is_kabylake : 1;
+	bool is_geminilake : 1;
 	const char *codename;
 };
 
@@ -156,6 +157,7 @@  void intel_check_pch(void);
 #define IS_KABYLAKE(devid)	(intel_get_device_info(devid)->is_kabylake)
 #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_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)))
diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c
index 5805b5e..db4f383 100644
--- a/lib/intel_device_info.c
+++ b/lib/intel_device_info.c
@@ -175,6 +175,12 @@  static const struct intel_device_info intel_kabylake_info = {
 	.codename = "kabylake"
 };
 
+static const struct intel_device_info intel_geminilake_info = {
+	.gen = BIT(8),
+	.is_geminilake = true,
+	.codename = "geminilake"
+};
+
 static const struct pci_id_match intel_device_match[] = {
 	INTEL_I830_IDS(&intel_i830_info),
 	INTEL_I845G_IDS(&intel_i845_info),
@@ -218,6 +224,8 @@  static const struct pci_id_match intel_device_match[] = {
 
 	INTEL_KBL_IDS(&intel_kabylake_info),
 
+	INTEL_GLK_IDS(&intel_geminilake_info),
+
 	INTEL_VGA_DEVICE(PCI_MATCH_ANY, &intel_generic_info),
 };