Commit 6b72caa5 authored by Chris Wilson's avatar Chris Wilson 🤔

lib/i915: Identify Rocketlake

commit a048d54f ("lib: Sync i915 PCI ids") added the ids for
Rocketlake, but no identification tables.

Closes: intel#2217Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
Acked-by: default avatarMika Kuoppala <mika.kuoppala@linux.intel.com>
parent 5a37420e
......@@ -73,6 +73,7 @@ struct intel_device_info {
bool is_icelake : 1;
bool is_elkhartlake : 1;
bool is_tigerlake : 1;
bool is_rocketlake : 1;
const char *codename;
};
......@@ -172,6 +173,7 @@ void intel_check_pch(void);
#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_ROCKETLAKE(devid) (intel_get_device_info(devid)->is_rocketlake)
#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)))
......
......@@ -321,6 +321,12 @@ static const struct intel_device_info intel_tigerlake_info = {
.codename = "tigerlake"
};
static const struct intel_device_info intel_rocketlake_info = {
.gen = BIT(11),
.is_rocketlake = true,
.codename = "rocketlake"
};
static const struct pci_id_match intel_device_match[] = {
INTEL_I810_IDS(&intel_i810_info),
INTEL_I815_IDS(&intel_i815_info),
......@@ -405,6 +411,7 @@ static const struct pci_id_match intel_device_match[] = {
INTEL_EHL_IDS(&intel_elkhartlake_info),
INTEL_TGL_12_IDS(&intel_tigerlake_info),
INTEL_RKL_IDS(&intel_rocketlake_info),
INTEL_VGA_DEVICE(PCI_MATCH_ANY, &intel_generic_info),
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment