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)
commit09f6dd6e6d4305cf199443bb7d099f4f64dc374b
treef1f595c62f705409e0f3741084e6c4e7bfa17fb6
parent947daab2a2d1813a8d973c59551545e44bdf1549
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