drm/amdgpu: Dynamic initialize IP base offset
authorShaoyun Liu <Shaoyun.Liu@amd.com>
Mon, 27 Nov 2017 18:16:35 +0000 (13:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Dec 2017 16:16:51 +0000 (11:16 -0500)
commit4522824c488e93755b10349cf6af0e967fb73186
tree90860aea820418ab4617d218cbe56676530c6a2d
parent8205f8840f753a36038ae76023ceab32e0e43934
drm/amdgpu: Dynamic initialize IP base offset

The base offsets of the IP blocks may change across
asics even though the relative register offsets
are the same for an IP.  Handle this dynamically.

Acked-by: Christian Konig <christian.koenig@amd.com>
Signed-off-by: Shaoyun Liu <Shaoyun.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/soc15.c
drivers/gpu/drm/amd/amdgpu/soc15.h
drivers/gpu/drm/amd/amdgpu/vega10_reg_init.c [new file with mode: 0644]