From 8af1b43a13d43c0750c1a5b07a9f498d2eaaa47c Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Tue, 3 Jan 2017 09:47:20 -0800 Subject: lib: Add Icelake platform definition v2 (made by Paulo): PCI IDs are now part of a previous patch, so we can move the INTEL_ICL_11_IDs macro to this patch and avoid the compilation warining on unused intel_icelake_info. v3 (made by Paulo): fix the changelog (Antonio). Acked-by: Antonio Argenziano Reviewed-by: Paulo Zanoni Signed-off-by: Arkadiusz Hiler Signed-off-by: Paulo Zanoni --- lib/intel_chipset.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/intel_chipset.h') diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h index 9250f4f9..40170b7b 100644 --- a/lib/intel_chipset.h +++ b/lib/intel_chipset.h @@ -67,6 +67,7 @@ struct intel_device_info { bool is_geminilake : 1; bool is_coffeelake : 1; bool is_cannonlake : 1; + bool is_icelake : 1; const char *codename; }; @@ -163,6 +164,7 @@ void intel_check_pch(void); #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_ICELAKE(devid) (intel_get_device_info(devid)->is_icelake) #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))) @@ -176,6 +178,7 @@ void intel_check_pch(void); #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_GEN11(devid) IS_GEN(devid, 11) #define IS_MOBILE(devid) (intel_get_device_info(devid)->is_mobile) #define IS_965(devid) AT_LEAST_GEN(devid, 4) -- cgit v1.2.3