Commit 7e6c0cb3 authored by Clint Taylor's avatar Clint Taylor Committed by Matt Roper
Browse files

drm/i915/xe3lpd: reuse xe2lpd definition



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: default avatarClint Taylor <clinton.a.taylor@intel.com>
Signed-off-by: default avatarMatt Atwood <matthew.s.atwood@intel.com>
Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241010224311.50133-2-matthew.s.atwood@intel.com
parent a31f62f6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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 *
+2 −0
Original line number Diff line number Diff line
@@ -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 {
+12 −0
Original line number Diff line number Diff line
@@ -794,4 +794,16 @@
	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 */