diff options
| author | Javier Villavicencio <javier.villavicencio@intel.com> | 2019-07-22 10:37:27 -0700 |
|---|---|---|
| committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2019-07-22 12:47:02 -0700 |
| commit | 43fa0386e00e36864326cbaa9e08640e0a190f51 (patch) | |
| tree | bf11ea0daf4963c59df8571dde163c0005f48dee /lib | |
| parent | 9d33c5fcd2861ecbfbb5314017b045a56bf3fb18 (diff) | |
lib/tgl: Add Tigerlake platform definition
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Javier Villavicencio <javier.villavicencio@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/intel_chipset.h | 3 | ||||
| -rw-r--r-- | lib/intel_device_info.c | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h index 74a40a46..781486d0 100644 --- a/lib/intel_chipset.h +++ b/lib/intel_chipset.h @@ -71,6 +71,7 @@ struct intel_device_info { bool is_cometlake : 1; bool is_cannonlake : 1; bool is_icelake : 1; + bool is_tigerlake : 1; const char *codename; }; @@ -168,6 +169,7 @@ void intel_check_pch(void); #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_TIGERLAKE(devid) (intel_get_device_info(devid)->is_tigerlake) #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))) @@ -182,6 +184,7 @@ void intel_check_pch(void); #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_GEN12(devid) IS_GEN(devid, 12) #define IS_MOBILE(devid) (intel_get_device_info(devid)->is_mobile) #define IS_965(devid) AT_LEAST_GEN(devid, 4) diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c index f4d9d9e1..cb6973f0 100644 --- a/lib/intel_device_info.c +++ b/lib/intel_device_info.c @@ -309,6 +309,12 @@ static const struct intel_device_info intel_icelake_info = { .codename = "icelake" }; +static const struct intel_device_info intel_tigerlake_info = { + .gen = BIT(11), + .is_tigerlake = true, + .codename = "tigerlake" +}; + static const struct pci_id_match intel_device_match[] = { INTEL_I810_IDS(&intel_i810_info), INTEL_I815_IDS(&intel_i815_info), |
