]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: init hw i2c speed
authorLewis Huang <Lewis.Huang@amd.com>
Tue, 14 Jan 2020 03:08:34 +0000 (11:08 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Jan 2020 21:55:28 +0000 (16:55 -0500)
commite64cc041ff278dd6cebdbd13e36c690eb2f13119
treef1f595c62f705409e0f3741084e6c4e7bfa17fb6
parentd313fd09533921b208fea6d68c9981e5a893cc89
drm/amd/display: init hw i2c speed

[Why]
Driver didn't init hw i2c speed cause hdcp hw cannot
send command, because the default value of speed register
is 0x2.

[How]
Restore the default speed when release i2c engine

Signed-off-by: Lewis Huang <Lewis.Huang@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@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
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.h