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 <[email protected]>
>
[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
> +}
> +