drm/i915/xe2hpd: Add display info
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 30 Apr 2024 17:28:40 +0000 (10:28 -0700)
committerRadhakrishna Sripada <radhakrishna.sripada@intel.com>
Fri, 3 May 2024 19:34:07 +0000 (12:34 -0700)
Add initial display info for xe2hpd. It is similar to xelpdp, but with no
PORT_B.

v2: Inherit from XE_LPDP_FEATURES instead of XE_LPD_FEATURES

Bspec: 67066
CC: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240430172850.1881525-10-radhakrishna.sripada@intel.com
drivers/gpu/drm/i915/display/intel_display_device.c

index 120e209ee74af2f4ab3e8f4e586d4efcb66c96fc..56a2e17d7d9e22b295c6247ad8989704e08214fd 100644 (file)
@@ -771,6 +771,12 @@ static const struct intel_display_device_info xe2_lpd_display = {
                BIT(INTEL_FBC_C) | BIT(INTEL_FBC_D),
 };
 
+static const struct intel_display_device_info xe2_hpd_display = {
+       XE_LPDP_FEATURES,
+       .__runtime_defaults.port_mask = BIT(PORT_A) |
+               BIT(PORT_TC1) | BIT(PORT_TC2) | BIT(PORT_TC3) | BIT(PORT_TC4),
+};
+
 __diag_pop();
 
 /*
@@ -852,6 +858,7 @@ static const struct {
        const struct intel_display_device_info *display;
 } gmdid_display_map[] = {
        { 14,  0, &xe_lpdp_display },
+       { 14,  1, &xe2_hpd_display },
        { 20,  0, &xe2_lpd_display },
 };