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/dce_virtual.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/dce_virtual.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c index 7d041b9a4d61..cc85676a68d9 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c | |||
@@ -574,7 +574,7 @@ static int dce_virtual_set_powergating_state(void *handle, | |||
574 | return 0; | 574 | return 0; |
575 | } | 575 | } |
576 | 576 | ||
577 | const struct amd_ip_funcs dce_virtual_ip_funcs = { | 577 | static const struct amd_ip_funcs dce_virtual_ip_funcs = { |
578 | .name = "dce_virtual", | 578 | .name = "dce_virtual", |
579 | .early_init = dce_virtual_early_init, | 579 | .early_init = dce_virtual_early_init, |
580 | .late_init = NULL, | 580 | .late_init = NULL, |
@@ -824,3 +824,11 @@ static void dce_virtual_set_irq_funcs(struct amdgpu_device *adev) | |||
824 | adev->crtc_irq.funcs = &dce_virtual_crtc_irq_funcs; | 824 | adev->crtc_irq.funcs = &dce_virtual_crtc_irq_funcs; |
825 | } | 825 | } |
826 | 826 | ||
827 | const struct amdgpu_ip_block_version dce_virtual_ip_block = | ||
828 | { | ||
829 | .type = AMD_IP_BLOCK_TYPE_DCE, | ||
830 | .major = 1, | ||
831 | .minor = 0, | ||
832 | .rev = 0, | ||
833 | .funcs = &dce_virtual_ip_funcs, | ||
834 | }; | ||