drm/amd/display: Decouple ABM init from dmcu
authorRoman Li <roman.li@amd.com>
Fri, 10 Jul 2020 14:33:05 +0000 (10:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Jul 2020 19:37:39 +0000 (15:37 -0400)
commit5cb32419cec0388d2daf04376ab5ebfece3bdc13
tree2745fdcef45bb0c996a733ebbeaf0316db82caff
parent831010da1b0b8f0d3e8a5ae4dc81b09947de38f7
drm/amd/display: Decouple ABM init from dmcu

[Why]
With ABM implemented on DMUB the ABM enablement
shoudn't be solely rely on dmcu. Otherwise it won't work
if dmcu is disabled.

[How]
1. Decouple dmcub config copy from dmcu iram copy.
2. Set abm connector property if either dmcu or dmub enabled.

Signed-off-by: Roman Li <roman.li@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c