drm/amdgpu: use register distance member instead of hardcode in GMC10
authorHuang Rui <ray.huang@amd.com>
Wed, 1 Jul 2020 07:26:04 +0000 (15:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2020 13:03:13 +0000 (09:03 -0400)
commitaf6c5c4f53d6045ee84a7fc460eb274443795124
tree5907854514d4cf1a69ad6265d23b7b87a67d35e5
parent148f597d67ae09ab90adf3d53251a1ab5a84ac53
drm/amdgpu: use register distance member instead of hardcode in GMC10

This patch updates to use register distance member instead of hardcode
in GMC10.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Tested-by: AnZhong Huang <anzhong.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c