drm/amdgpu/discovery: move common discovery code out of navi1*_reg_base_init()
authorXiaojie Yuan <xiaojie.yuan@amd.com>
Mon, 5 Aug 2019 08:19:45 +0000 (16:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Aug 2019 18:53:05 +0000 (13:53 -0500)
commitb5c73856408b8431eeb29bc1f7d41dbe7549b75b
treeba9204b8c31b5614965b6ce302073b856a3e2c0a
parent35ef88fa115d0810d28d960b951e7260ed46ad59
drm/amdgpu/discovery: move common discovery code out of navi1*_reg_base_init()

move amdgpu_discovery_reg_base_init() from navi1*_reg_base_init() to a
common function nv_reg_base_init().

Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c
drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c
drivers/gpu/drm/amd/amdgpu/nv.c