summaryrefslogtreecommitdiff
path: root/lib/intel_chipset.h
diff options
context:
space:
mode:
authorRodrigo Vivi <rodrigo.vivi@intel.com>2017-01-04 15:22:36 -0800
committerRodrigo Vivi <rodrigo.vivi@intel.com>2017-06-30 08:34:56 -0700
commit23536e0e07493c3e2a5f5163de8c9143afe4a27f (patch)
tree993291c0337ad6a2b90b68d3c6e1310a8569ee04 /lib/intel_chipset.h
parente172606b1f70dd4f2eebe71d4b653ef53a565f05 (diff)
lib/cnl: Introduce Cannonlake platform defition.
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@intel.com>
Diffstat (limited to 'lib/intel_chipset.h')
-rw-r--r--lib/intel_chipset.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 24688907..7fc9b3bf 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)