]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/display: Add definition for wcl as subplatform
authorDnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Mon, 22 Sep 2025 15:03:16 +0000 (20:33 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Tue, 23 Sep 2025 16:14:33 +0000 (21:44 +0530)
We will need to differentiate between WCL and PTL in
intel_encoder_is_c10phy(). Since WCL and PTL use the same display
architecture, let's define WCL as a subplatform of PTL to allow the
differentiation.

v2: Update commit message and reorder wcl define (Gustavo)

Signed-off-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://lore.kernel.org/r/20250922150317.2334680-3-dnyaneshwar.bhadane@intel.com
drivers/gpu/drm/i915/display/intel_display_device.c
drivers/gpu/drm/i915/display/intel_display_device.h

index a9a36176096f4b165db655be033f70df525dde20..f3f1f25b0f383fb2f6853ff1b428fbd8586d0982 100644 (file)
@@ -1404,8 +1404,20 @@ static const struct platform_desc bmg_desc = {
        PLATFORM_GROUP(dgfx),
 };
 
+static const u16 wcl_ids[] = {
+       INTEL_WCL_IDS(ID),
+       0
+};
+
 static const struct platform_desc ptl_desc = {
        PLATFORM(pantherlake),
+       .subplatforms = (const struct subplatform_desc[]) {
+               {
+                       SUBPLATFORM(pantherlake, wildcatlake),
+                       .pciidlist = wcl_ids,
+               },
+               {},
+       }
 };
 
 __diag_pop();
index 1f091fbcd0ec18bd89acb40db72b79d6244cd147..0e062753cf9b6bd99afbfc2c5902f91a89c2b9e3 100644 (file)
@@ -101,7 +101,9 @@ struct pci_dev;
        /* Display ver 14.1 (based on GMD ID) */ \
        func(battlemage) \
        /* Display ver 30 (based on GMD ID) */ \
-       func(pantherlake)
+       func(pantherlake) \
+       func(pantherlake_wildcatlake)
+
 
 #define __MEMBER(name) unsigned long name:1;
 #define __COUNT(x) 1 +