Skip to content

Commit 913253e

Browse files
bhadanednyaneshwarrodrigovivi
authored andcommitted
drm/i915/display: Add definition for wcl as subplatform
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) Fixes: 3c0f211 ("drm/xe: Add Wildcat Lake device IDs to PTL list") 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 (cherry picked from commit 4dfaae6) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> [Rodrigo added Fixes tag when porting it to fixes]
1 parent 6eb2e05 commit 913253e

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

drivers/gpu/drm/i915/display/intel_display_device.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,8 +1404,20 @@ static const struct platform_desc bmg_desc = {
14041404
PLATFORM_GROUP(dgfx),
14051405
};
14061406

1407+
static const u16 wcl_ids[] = {
1408+
INTEL_WCL_IDS(ID),
1409+
0
1410+
};
1411+
14071412
static const struct platform_desc ptl_desc = {
14081413
PLATFORM(pantherlake),
1414+
.subplatforms = (const struct subplatform_desc[]) {
1415+
{
1416+
SUBPLATFORM(pantherlake, wildcatlake),
1417+
.pciidlist = wcl_ids,
1418+
},
1419+
{},
1420+
}
14091421
};
14101422

14111423
__diag_pop();

drivers/gpu/drm/i915/display/intel_display_device.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ struct pci_dev;
101101
/* Display ver 14.1 (based on GMD ID) */ \
102102
func(battlemage) \
103103
/* Display ver 30 (based on GMD ID) */ \
104-
func(pantherlake)
104+
func(pantherlake) \
105+
func(pantherlake_wildcatlake)
106+
105107

106108
#define __MEMBER(name) unsigned long name:1;
107109
#define __COUNT(x) 1 +

0 commit comments

Comments
 (0)