[igt-dev] [i-g-t 2/2] lib/adl_s: Add Alder Lake S platform definition
From: Tejas Upadhyay <hidden>
Date: 2021-02-11 10:44:56
Subsystem:
library code, the rest · Maintainers:
Andrew Morton, Linus Torvalds
Adding Alder lake platform definitions Cc: Anusha Srivatsa <redacted> Cc: Lucas De Marchi <redacted> Signed-off-by: Caz Yokoyama <redacted> Signed-off-by: Tejas Upadhyay <redacted> --- lib/intel_chipset.h | 2 ++ lib/intel_device_info.c | 8 ++++++++ 2 files changed, 10 insertions(+)
diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h
index 63c98025..f766021e 100644
--- a/lib/intel_chipset.h
+++ b/lib/intel_chipset.h@@ -76,6 +76,7 @@ struct intel_device_info { bool is_tigerlake : 1; bool is_rocketlake : 1; bool is_dg1 : 1; + bool is_alderlake_s : 1; const char *codename; };
@@ -176,6 +177,7 @@ void intel_check_pch(void); #define IS_TIGERLAKE(devid) (intel_get_device_info(devid)->is_tigerlake) #define IS_ROCKETLAKE(devid) (intel_get_device_info(devid)->is_rocketlake) #define IS_DG1(devid) (intel_get_device_info(devid)->is_dg1) +#define IS_ALDERLAKE_S(devid) (intel_get_device_info(devid)->is_alderlake_s) #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 5c3816fe..e07fdf6f 100644
--- a/lib/intel_device_info.c
+++ b/lib/intel_device_info.c@@ -347,6 +347,12 @@ static const struct intel_device_info intel_dg1_info = { .codename = "dg1" }; +static const struct intel_device_info intel_alderlake_s_info = { + .gen = BIT(11), + .is_alderlake_s = true, + .codename = "alderlake_s" +}; + static const struct pci_id_match intel_device_match[] = { INTEL_I810_IDS(&intel_i810_info), INTEL_I815_IDS(&intel_i815_info),
@@ -437,6 +443,8 @@ static const struct pci_id_match intel_device_match[] = { INTEL_DG1_IDS(&intel_dg1_info), + INTEL_ADLS_IDS(&intel_alderlake_s_info), + INTEL_VGA_DEVICE(PCI_MATCH_ANY, &intel_generic_info), };
--
2.30.0
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev