mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-27 14:04:59 +07:00
drm/amd/display: add nv14 cases to amdgpu_dm
Mostly shared with navi10. Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
ab5e51211c
commit
fce651e393
@ -2359,6 +2359,7 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
|
|||||||
case CHIP_RAVEN:
|
case CHIP_RAVEN:
|
||||||
#if defined(CONFIG_DRM_AMD_DC_DCN2_0)
|
#if defined(CONFIG_DRM_AMD_DC_DCN2_0)
|
||||||
case CHIP_NAVI10:
|
case CHIP_NAVI10:
|
||||||
|
case CHIP_NAVI14:
|
||||||
#endif
|
#endif
|
||||||
if (dcn10_register_irq_handlers(dm->adev)) {
|
if (dcn10_register_irq_handlers(dm->adev)) {
|
||||||
DRM_ERROR("DM: Failed to initialize IRQ\n");
|
DRM_ERROR("DM: Failed to initialize IRQ\n");
|
||||||
@ -2519,6 +2520,11 @@ static int dm_early_init(void *handle)
|
|||||||
adev->mode_info.num_hpd = 6;
|
adev->mode_info.num_hpd = 6;
|
||||||
adev->mode_info.num_dig = 6;
|
adev->mode_info.num_dig = 6;
|
||||||
break;
|
break;
|
||||||
|
case CHIP_NAVI14:
|
||||||
|
adev->mode_info.num_crtc = 5;
|
||||||
|
adev->mode_info.num_hpd = 5;
|
||||||
|
adev->mode_info.num_dig = 5;
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
DRM_ERROR("Unsupported ASIC type: 0x%X\n", adev->asic_type);
|
DRM_ERROR("Unsupported ASIC type: 0x%X\n", adev->asic_type);
|
||||||
@ -2814,6 +2820,7 @@ fill_plane_buffer_attributes(struct amdgpu_device *adev,
|
|||||||
adev->asic_type == CHIP_VEGA20 ||
|
adev->asic_type == CHIP_VEGA20 ||
|
||||||
#if defined(CONFIG_DRM_AMD_DC_DCN2_0)
|
#if defined(CONFIG_DRM_AMD_DC_DCN2_0)
|
||||||
adev->asic_type == CHIP_NAVI10 ||
|
adev->asic_type == CHIP_NAVI10 ||
|
||||||
|
adev->asic_type == CHIP_NAVI14 ||
|
||||||
#endif
|
#endif
|
||||||
adev->asic_type == CHIP_RAVEN) {
|
adev->asic_type == CHIP_RAVEN) {
|
||||||
/* Fill GFX9 params */
|
/* Fill GFX9 params */
|
||||||
|
Loading…
Reference in New Issue
Block a user