]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Refine i2c frequency calculating sequence
authorLewis Huang <Lewis.Huang@amd.com>
Fri, 10 Jan 2020 16:51:15 +0000 (00:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Jan 2020 21:55:27 +0000 (16:55 -0500)
commit60c9a36681c55f7b3b1e0001a1e7b131f8d06ca9
tree430c8d62f41da808160aebe29f9b1f4302547369
parent93d9c0e092796ef199903fd37fca4ae90ad4895a
drm/amd/display: Refine i2c frequency calculating sequence

[Why]
In HG mode, vbios didn't call DispController_Init to program NV1x
XTAL_REF_DIV value when ASIC_INIT, but driver read XTAL_REF_DIV
to calculate i2c reference frequency. it cause i2c frequency change
from 100kHz to 200kHz.

[How]
remove get_speed function and calculate reference frequency at
set_speed functiton.

Signed-off-by: Lewis Huang <Lewis.Huang@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c