Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99f99486 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mdss: hdmi: adjust HDMI DDC speed configuration"

parents 8b46fe9a 01e259a1
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -959,13 +959,17 @@ error:

void hdmi_ddc_config(struct hdmi_tx_ddc_ctrl *ddc_ctrl)
{
	u32 ddc_speed;

	if (!ddc_ctrl || !ddc_ctrl->io) {
		pr_err("invalid input\n");
		return;
	}

	/* Configure Pre-Scale multiplier & Threshold */
	DSS_REG_W_ND(ddc_ctrl->io, HDMI_DDC_SPEED, (10 << 16) | (2 << 0));
	ddc_speed = DSS_REG_R_ND(ddc_ctrl->io, HDMI_DDC_SPEED);
	ddc_speed |= (12 << 16) | (2 << 0);
	DSS_REG_W_ND(ddc_ctrl->io, HDMI_DDC_SPEED, ddc_speed);

	/*
	 * Setting 31:24 bits : Time units to wait before timeout