diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2016-10-13 17:41:13 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-10-25 14:38:45 -0400 |
commit | a12551072126758ecb0743147054f22bf233bb7d (patch) | |
tree | f3850a0b1945b6620fd591cafdb8ecb998b01302 /drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |
parent | cf35c7ca3d50286a3ac7672aa7d26a8d2e930706 (diff) |
drm/amdgpu: rework IP block registration (v2)
This makes it easier to replace specific IP blocks on
asics for handling virtual_dce, DAL, etc. and for building
IP lists for hw or tables. This also stored the status
information in the same structure.
v2: split out spelling fix into a separate patch
add a function to add IPs to the list
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c index 7532ff822aa7..fa6baf31a35d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | |||
@@ -299,7 +299,7 @@ static int amdgpu_pp_soft_reset(void *handle) | |||
299 | return ret; | 299 | return ret; |
300 | } | 300 | } |
301 | 301 | ||
302 | const struct amd_ip_funcs amdgpu_pp_ip_funcs = { | 302 | static const struct amd_ip_funcs amdgpu_pp_ip_funcs = { |
303 | .name = "amdgpu_powerplay", | 303 | .name = "amdgpu_powerplay", |
304 | .early_init = amdgpu_pp_early_init, | 304 | .early_init = amdgpu_pp_early_init, |
305 | .late_init = amdgpu_pp_late_init, | 305 | .late_init = amdgpu_pp_late_init, |
@@ -316,3 +316,12 @@ const struct amd_ip_funcs amdgpu_pp_ip_funcs = { | |||
316 | .set_clockgating_state = amdgpu_pp_set_clockgating_state, | 316 | .set_clockgating_state = amdgpu_pp_set_clockgating_state, |
317 | .set_powergating_state = amdgpu_pp_set_powergating_state, | 317 | .set_powergating_state = amdgpu_pp_set_powergating_state, |
318 | }; | 318 | }; |
319 | |||
320 | const struct amdgpu_ip_block_version amdgpu_pp_ip_block = | ||
321 | { | ||
322 | .type = AMD_IP_BLOCK_TYPE_SMC, | ||
323 | .major = 1, | ||
324 | .minor = 0, | ||
325 | .rev = 0, | ||
326 | .funcs = &amdgpu_pp_ip_funcs, | ||
327 | }; | ||