Commit 3d696cbf authored by Zeyu Fan's avatar Zeyu Fan Committed by Alex Deucher

drm/amd/display: Set i2c speed to 100khz for DCE11.2 and later.

Signed-off-by: default avatarZeyu Fan <Zeyu.Fan@amd.com>
Reviewed-by: default avatarCharlene Liu <Charlene.Liu@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6631e5a9
......@@ -337,6 +337,9 @@ enum {
DEFAULT_I2C_SW_SPEED = 50,
DEFAULT_I2C_HW_SPEED = 50,
DEFAULT_I2C_SW_SPEED_100KHZ = 100,
DEFAULT_I2C_HW_SPEED_100KHZ = 100,
/* This is the timeout as defined in DP 1.2a,
* 2.3.4 "Detailed uPacket TX AUX CH State Description". */
AUX_TIMEOUT_PERIOD = 400,
......@@ -436,8 +439,13 @@ bool dal_i2caux_construct(
i2caux->aux_timeout_period =
SW_AUX_TIMEOUT_PERIOD_MULTIPLIER * AUX_TIMEOUT_PERIOD;
i2caux->default_i2c_sw_speed = DEFAULT_I2C_SW_SPEED;
i2caux->default_i2c_hw_speed = DEFAULT_I2C_HW_SPEED;
if (ctx->dce_version >= DCE_VERSION_11_2) {
i2caux->default_i2c_hw_speed = DEFAULT_I2C_HW_SPEED_100KHZ;
i2caux->default_i2c_sw_speed = DEFAULT_I2C_SW_SPEED_100KHZ;
} else {
i2caux->default_i2c_hw_speed = DEFAULT_I2C_HW_SPEED;
i2caux->default_i2c_sw_speed = DEFAULT_I2C_SW_SPEED;
}
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment