drm/amdgpu: use register distance member instead of hardcode in VCN2/JEPG2
authorHuang Rui <ray.huang@amd.com>
Wed, 1 Jul 2020 07:46:59 +0000 (15:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2020 13:03:32 +0000 (09:03 -0400)
commit9a69574b10a2077670926c905c80157d9d7b28e8
treec0c9434db139f2ef8f2385aa136c32e13d85ca9d
parent2fcaca94bedae2ea9516168b32723106428db52e
drm/amdgpu: use register distance member instead of hardcode in VCN2/JEPG2

This patch updates to use register distance member instead of hardcode
in VCN2/JEPG2. They are for the same ASIC.

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/jpeg_v2_0.c
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c