temp |= TRANS_DDI_HDMI_SCRAMBLING;
                if (crtc_state->hdmi_high_tmds_clock_ratio)
                        temp |= TRANS_DDI_HIGH_TMDS_CHAR_RATE;
+               if (DISPLAY_VER(dev_priv) >= 14)
+                       temp |= TRANS_DDI_PORT_WIDTH(crtc_state->lane_count);
        } else if (intel_crtc_has_type(crtc_state, INTEL_OUTPUT_ANALOG)) {
                temp |= TRANS_DDI_MODE_SELECT_FDI_OR_128B132B;
                temp |= (crtc_state->fdi_lanes - 1) << 1;
        if (has_buf_trans_select(dev_priv))
                hsw_prepare_hdmi_ddi_buffers(encoder, crtc_state);
 
+       /* e. Enable D2D Link for C10/C20 Phy */
+       if (DISPLAY_VER(dev_priv) >= 14)
+               mtl_ddi_enable_d2d(encoder);
+
        encoder->set_signal_levels(encoder, crtc_state);
 
        /* Display WA #1143: skl,kbl,cfl */
         *
         * On ADL_P the PHY link rate and lane count must be programmed but
         * these are both 0 for HDMI.
+        *
+        * But MTL onwards HDMI2.1 is supported and in TMDS mode this
+        * is filled with lane count, already set in the crtc_state.
+        * The same is required to be filled in PORT_BUF_CTL for C10/20 Phy.
         */
        buf_ctl = dig_port->saved_port_bits | DDI_BUF_CTL_ENABLE;
-       if (IS_ALDERLAKE_P(dev_priv) && intel_phy_is_tc(dev_priv, phy)) {
+       if (DISPLAY_VER(dev_priv) >= 14) {
+               u8  lane_count = mtl_get_port_width(crtc_state->lane_count);
+               u32 port_buf = 0;
+
+               port_buf |= XELPDP_PORT_WIDTH(lane_count);
+
+               if (dig_port->saved_port_bits & DDI_BUF_PORT_REVERSAL)
+                       port_buf |= XELPDP_PORT_REVERSAL;
+
+               intel_de_rmw(dev_priv, XELPDP_PORT_BUF_CTL1(port),
+                            XELPDP_PORT_WIDTH_MASK | XELPDP_PORT_REVERSAL, port_buf);
+
+               buf_ctl |= DDI_PORT_WIDTH(lane_count);
+       } else if (IS_ALDERLAKE_P(dev_priv) && intel_phy_is_tc(dev_priv, phy)) {
                drm_WARN_ON(&dev_priv->drm, !intel_tc_port_in_legacy_mode(dig_port));
                buf_ctl |= DDI_BUF_CTL_TC_PHY_OWNERSHIP;
        }
+
        intel_de_write(dev_priv, DDI_BUF_CTL(port), buf_ctl);
 
        intel_wait_ddi_buf_active(dev_priv, port);
                fallthrough;
        case TRANS_DDI_MODE_SELECT_DVI:
                pipe_config->output_types |= BIT(INTEL_OUTPUT_HDMI);
-               pipe_config->lane_count = 4;
+               if (DISPLAY_VER(dev_priv) >= 14)
+                       pipe_config->lane_count =
+                               ((temp & DDI_PORT_WIDTH_MASK) >> DDI_PORT_WIDTH_SHIFT) + 1;
+               else
+                       pipe_config->lane_count = 4;
                break;
        case TRANS_DDI_MODE_SELECT_DP_SST:
                if (encoder->type == INTEL_OUTPUT_EDP)