Commit 3b36f50d authored by Tim Huang's avatar Tim Huang Committed by Alex Deucher

drm/amd/display: convert to DCE IP version checking

Use IP versions rather than asic_type to differentiate IP version specific features.
Signed-off-by: default avatarTim Huang <tim.huang@amd.com>
Reviewed-by: default avatarAaron Liu <aaron.liu@amd.com>
Acked-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 37d6b150
...@@ -1119,14 +1119,12 @@ static int dm_dmub_hw_init(struct amdgpu_device *adev) ...@@ -1119,14 +1119,12 @@ static int dm_dmub_hw_init(struct amdgpu_device *adev)
for (i = 0; i < fb_info->num_fb; ++i) for (i = 0; i < fb_info->num_fb; ++i)
hw_params.fb[i] = &fb_info->fb[i]; hw_params.fb[i] = &fb_info->fb[i];
switch (adev->asic_type) { switch (adev->ip_versions[DCE_HWIP][0]) {
case CHIP_YELLOW_CARP: case IP_VERSION(3, 1, 3): /* Only for this asic hw internal rev B0 */
if (dc->ctx->asic_id.hw_internal_rev != YELLOW_CARP_A0) { hw_params.dpia_supported = true;
hw_params.dpia_supported = true;
#if defined(CONFIG_DRM_AMD_DC_DCN) #if defined(CONFIG_DRM_AMD_DC_DCN)
hw_params.disable_dpia = dc->debug.dpia_debug.bits.disable_dpia; hw_params.disable_dpia = dc->debug.dpia_debug.bits.disable_dpia;
#endif #endif
}
break; break;
default: default:
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment