drm/amdgpu: update mmhub mgcg&ls for mmhub_v2_3
authorAaron Liu <aaron.liu@amd.com>
Mon, 18 Jan 2021 09:05:00 +0000 (17:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 Jan 2021 15:46:05 +0000 (10:46 -0500)
commit39263a2f886817a376fc27ba9af14c5053f0934b
treed59aef86e1f19ab2b1e248b130aff46e88514393
parent8f0d60fe8bf24fd79892a1a22f16c0629d5af6d3
drm/amdgpu: update mmhub mgcg&ls for mmhub_v2_3

Starting from vangogh, the ATCL2 and DAGB0 registers relative
to mgcg/ls has changed.

For MGCG:
Replace mmMM_ATC_L2_MISC_CG with mmMM_ATC_L2_CGTT_CLK_CTRL.

For MGLS:
Replace mmMM_ATC_L2_MISC_CG with mmMM_ATC_L2_CGTT_CLK_CTRL.
Add DAGB0_(WR/RD)_CGTT_CLK_CTRL registers.

Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c