drm/amdgpu: use register distance member instead of hardcode in GMC9
authorHuang Rui <ray.huang@amd.com>
Wed, 1 Jul 2020 07:23:40 +0000 (15:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2020 13:03:06 +0000 (09:03 -0400)
commit148f597d67ae09ab90adf3d53251a1ab5a84ac53
tree769529ae3eba2fd7c2e83da405a5b6a808636400
parent1f9d56c30939757cc4ea63030c329fb54d001136
drm/amdgpu: use register distance member instead of hardcode in GMC9

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

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_v9_0.c