[PATCH] drm/mediatek/dp: Add the HDCP feature for DisplayPort

CK Hu (胡俊光) ck.hu at mediatek.com
Mon Dec 18 17:59:46 PST 2023


Hi, Mac:

On Fri, 2023-11-24 at 16:53 +0800, mac.shen wrote:
> Add tee client application, HDCP 1.x and 2.x authentication for
> DisplayPort
> to support the HDCP feature.
> 
> Signed-off-by: mac.shen <mac.shen at mediatek.com>
> 

[snip]

> +
> +static void mhal_dp_tx_hdcp1x_set_repeater(struct mtk_hdcp_info
> *hdcp_info, bool enable)
> +{
> +	if (enable)
> +		mtk_dp_reg_update_bits(hdcp_info->regs,
> MTK_DP_TRANS_P0_34A4, BIT(15), BIT(15));
> +	else
> +		mtk_dp_reg_update_bits(hdcp_info->regs,
> MTK_DP_TRANS_P0_34A4, 0,  BIT(15));
> +
> +#ifdef IF_ZERO
> +	if (hdcp_info->hdcp1x_info.repeater) {
> +		u8 temp;
> +
> +		temp = BIT(0); /* REAUTHENTICATION_ENABLE_IRQ_HPD */
> +		drm_dp_dpcd_write(hdcp_info->aux, DPCD_6803B, &temp,
> 1);
> +	}
> +#endif

IF_ZERO is not defined, so remove these.

Regards,
CK

> +}
> +


More information about the Linux-mediatek mailing list