drm/amdgpu: add nv common ip block support for van gogh
authorHuang Rui <ray.huang@amd.com>
Thu, 27 Aug 2020 14:46:19 +0000 (10:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Oct 2020 19:14:02 +0000 (15:14 -0400)
This patch adds common ip support for van gogh.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index 1ce741a..622bcbb 100644 (file)
@@ -443,6 +443,9 @@ legacy_init:
        case CHIP_NAVY_FLOUNDER:
                sienna_cichlid_reg_base_init(adev);
                break;
+       case CHIP_VANGOGH:
+               vangogh_reg_base_init(adev);
+               break;
        default:
                return -EINVAL;
        }
@@ -823,6 +826,11 @@ static int nv_common_early_init(void *handle)
                adev->external_rev_id = adev->rev_id + 0x32;
                break;
 
+       case CHIP_VANGOGH:
+               adev->cg_flags = 0;
+               adev->pg_flags = 0;
+               adev->external_rev_id = adev->rev_id + 0x01;
+               break;
        default:
                /* FIXME: not supported yet */
                return -EINVAL;