diff options
author | Roman Li <Roman.Li@amd.com> | 2020-09-29 11:21:58 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-10-05 15:15:56 -0400 |
commit | 3a83e4e64bb1522ddac67ffc787d1c38291e1a65 (patch) | |
tree | 907efd005ca3c474afd17acae74f53aec1a8836e /drivers/gpu/drm/amd/display/dc/core | |
parent | ac0dc4c5a0760c9a9437d5864c277d9d2554a6ec (diff) | |
download | linux-3a83e4e64bb1522ddac67ffc787d1c38291e1a65.tar.bz2 |
drm/amd/display: Add dcn3.01 support to DC (v2)
Update dc for vangogh support.
v2: fix compilation without DCN 301 set.
Signed-off-by: Roman Li <Roman.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/core')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c index e430148e47cf..f240576a87a2 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c @@ -58,6 +58,9 @@ #if defined(CONFIG_DRM_AMD_DC_DCN3_0) #include "../dcn30/dcn30_resource.h" #endif +#if defined(CONFIG_DRM_AMD_DC_DCN3_01) +#include "../dcn301/dcn301_resource.h" +#endif #define DC_LOGGER_INIT(logger) @@ -130,6 +133,12 @@ enum dce_version resource_parse_asic_id(struct hw_asic_id asic_id) dc_version = DCN_VERSION_3_0; #endif break; + +#if defined(CONFIG_DRM_AMD_DC_DCN3_01) + case FAMILY_VGH: + dc_version = DCN_VERSION_3_01; + break; +#endif default: dc_version = DCE_VERSION_UNKNOWN; break; @@ -210,6 +219,11 @@ struct resource_pool *dc_create_resource_pool(struct dc *dc, break; #endif +#if defined(CONFIG_DRM_AMD_DC_DCN3_01) + case DCN_VERSION_3_01: + res_pool = dcn301_create_resource_pool(init_data, dc); + break; +#endif default: break; } |