From: Alex Deucher Date: Fri, 2 Jun 2017 18:54:26 +0000 (-0400) Subject: drm/amdgpu/soc15: enable DC ip module for Raven X-Git-Tag: v5.15~9960^2~23^2~466 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bf954c154d7a8989afb6c138d63ca846bab47db;p=platform%2Fkernel%2Flinux-starfive.git drm/amdgpu/soc15: enable DC ip module for Raven Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index 3d9a51d..c2611ec 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15.c +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c @@ -554,6 +554,12 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev) amdgpu_ip_block_add(adev, &amdgpu_pp_ip_block); if (adev->enable_virtual_display || amdgpu_sriov_vf(adev)) amdgpu_ip_block_add(adev, &dce_virtual_ip_block); +#if defined(CONFIG_DRM_AMD_DC) + else if (amdgpu_device_has_dc_support(adev)) + amdgpu_ip_block_add(adev, &dm_ip_block); +#else +# warning "Enable CONFIG_DRM_AMD_DC for display support on SOC15." +#endif amdgpu_ip_block_add(adev, &gfx_v9_0_ip_block); amdgpu_ip_block_add(adev, &sdma_v4_0_ip_block); amdgpu_ip_block_add(adev, &vcn_v1_0_ip_block);