diff options
author | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2022-02-14 13:33:38 +0100 |
---|---|---|
committer | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2022-02-15 16:06:02 +0100 |
commit | ee18c0497ec2c74007e299c3fdd26f1613b9f514 (patch) | |
tree | 80954c23f353138fc64f7f4c98c7d17243c06ad3 | |
parent | b842aa665d4834a9a91436fb0030670c62002fc8 (diff) |
lib/intel_chipset: Add flatccs flag for DG2
FlatCCS is discrete DG2+ feature and is worth to add the flag which
enables it. Add HAS_FLATCCS() macro which should make conditional code
simpler and compact.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Petri Latvala <petri.latvala@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
-rw-r--r-- | lib/intel_chipset.h | 3 | ||||
-rw-r--r-- | lib/intel_device_info.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h index 1396f105..e27b9aab 100644 --- a/lib/intel_chipset.h +++ b/lib/intel_chipset.h @@ -40,6 +40,7 @@ struct intel_device_info { unsigned graphics_ver; unsigned display_ver; unsigned gt; /* 0 if unknown */ + bool has_flatccs; bool is_mobile : 1; bool is_whitney : 1; bool is_almador : 1; @@ -215,4 +216,6 @@ void intel_check_pch(void); IS_CHERRYVIEW(devid) || \ IS_BROXTON(devid))) +#define HAS_FLATCCS(devid) (intel_get_device_info(devid)->has_flatccs) + #endif /* _INTEL_CHIPSET_H */ diff --git a/lib/intel_device_info.c b/lib/intel_device_info.c index 4aabdafe..9f191367 100644 --- a/lib/intel_device_info.c +++ b/lib/intel_device_info.c @@ -395,6 +395,7 @@ static const struct intel_device_info intel_dg2_info = { .display_ver = 13, .is_dg2 = true, .codename = "dg2", + .has_flatccs = true, }; static const struct intel_device_info intel_alderlake_s_info = { |