summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2016-12-20 13:51:01 +0200
committerAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2017-01-03 13:42:43 +0200
commitc7c581a6843644343c15e964eddacab4a6c77769 (patch)
tree3c4ad4706c94754e311c41f1f0a35e2a91f9c18e /lib
parent770fd185eb7c878d7d1e16af4aa4f456a264d148 (diff)
lib/intel_chipset: Add geminilake platform definition
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/intel_chipset.h2
-rw-r--r--lib/intel_device_info.c8
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 3c1260bc..259b45f5 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 5805b5e1..db4f3831 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),
};