]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/xe3lpd: reuse xe2lpd definition
authorClint Taylor <clinton.a.taylor@intel.com>
Thu, 10 Oct 2024 22:43:02 +0000 (15:43 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 11 Oct 2024 21:34:32 +0000 (14:34 -0700)
xe3_lpd display is functionally identical to xe2_lpd for now so reuse
the device description.  A separate xe3 definition will be added in the
future if/when new feature flags are required.

Signed-off-by: Clint Taylor <clinton.a.taylor@intel.com>
Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241010224311.50133-2-matthew.s.atwood@intel.com
drivers/gpu/drm/i915/display/intel_display_device.c
drivers/gpu/drm/i915/display/intel_display_device.h
include/drm/intel/i915_pciids.h

index f33062322c66b351f2412cb52eee2a7e9786acc3..aa22189e38530583da74ed3192294e67945a3422 100644 (file)
@@ -1252,6 +1252,10 @@ static const struct platform_desc bmg_desc = {
        PLATFORM(BATTLEMAGE),
 };
 
+static const struct platform_desc ptl_desc = {
+       PLATFORM(PANTHERLAKE),
+};
+
 __diag_pop();
 
 /*
@@ -1322,6 +1326,7 @@ static const struct {
        INTEL_MTL_IDS(INTEL_DISPLAY_DEVICE, &mtl_desc),
        INTEL_LNL_IDS(INTEL_DISPLAY_DEVICE, &lnl_desc),
        INTEL_BMG_IDS(INTEL_DISPLAY_DEVICE, &bmg_desc),
+       INTEL_PTL_IDS(INTEL_DISPLAY_DEVICE, &ptl_desc),
 };
 
 static const struct {
@@ -1332,6 +1337,7 @@ static const struct {
        { 14,  0, &xe_lpdp_display },
        { 14,  1, &xe2_hpd_display },
        { 20,  0, &xe2_lpd_display },
+       { 30,  0, &xe2_lpd_display },
 };
 
 static const struct intel_display_device_info *
index 3ef537fa551a205b229380a1267182044638f59b..071a36b51f79f93a4dd04d8a94b58ef014d87fe8 100644 (file)
@@ -70,6 +70,8 @@ enum intel_display_platform {
        INTEL_DISPLAY_LUNARLAKE,
        /* Display ver 14.1 (based on GMD ID) */
        INTEL_DISPLAY_BATTLEMAGE,
+       /* Display ver 30 (based on GMD ID) */
+       INTEL_DISPLAY_PANTHERLAKE,
 };
 
 enum intel_display_subplatform {
index 02156c6f79b63db4d1587659eb95fd946ab733a9..6b92f8c3731bfe44acf4f6b11384bf00536b8ea4 100644 (file)
        MACRO__(0xE20D, ## __VA_ARGS__), \
        MACRO__(0xE212, ## __VA_ARGS__)
 
+/* PTL */
+#define INTEL_PTL_IDS(MACRO__, ...) \
+       MACRO__(0xB080, ## __VA_ARGS__), \
+       MACRO__(0xB081, ## __VA_ARGS__), \
+       MACRO__(0xB082, ## __VA_ARGS__), \
+       MACRO__(0xB090, ## __VA_ARGS__), \
+       MACRO__(0xB091, ## __VA_ARGS__), \
+       MACRO__(0xB092, ## __VA_ARGS__), \
+       MACRO__(0xB0A0, ## __VA_ARGS__), \
+       MACRO__(0xB0A1, ## __VA_ARGS__), \
+       MACRO__(0xB0A2, ## __VA_ARGS__)
+
 #endif /* _I915_PCIIDS_H */