drm/amdgpu: calculate MCUMC_ADDRT0 per asic's UMC offset
authorGuchun Chen <guchun.chen@amd.com>
Wed, 8 Jan 2020 05:52:00 +0000 (13:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Jan 2020 15:18:09 +0000 (10:18 -0500)
commit5d4667ec33a0d2978afb999eedc81ac54d76fe5c
tree29c3780aa5729816d1b3089e4053dda60a8fcab3
parent817396dc9f6ab2481b94071de2e586aae876e89c
drm/amdgpu: calculate MCUMC_ADDRT0 per asic's UMC offset

Hardcoded offset is not friendly. And another benifit of this
patch is to keep read and write access to this register be
consistent with other similar UMC regsiters  in this file.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/umc_v6_1.c