[igt-dev] [i-g-t 2/2] lib/adl_s: Add Alder Lake S platform definition
Petri Latvala
petri.latvala at intel.com
Thu Feb 11 11:22:35 UTC 2021
On Thu, Feb 11, 2021 at 04:06:07PM +0530, Tejas Upadhyay wrote:
> Adding Alder lake platform definitions
>
> Cc: Anusha Srivatsa <anusha.srivatsa at intel.com>
> Cc: Lucas De Marchi <lucas.demarchi at intel.com>
> Signed-off-by: Caz Yokoyama <caz.yokoyama at intel.com>
> Signed-off-by: Tejas Upadhyay <tejaskumarx.surendrakumar.upadhyay at intel.com>
Reviewed-by: Petri Latvala <petri.latvala at intel.com>
> ---
> 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 at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
More information about the igt-dev
mailing list