drm/amdgpu/soc15: add support for sienna_cichlid
authorLikun Gao <Likun.Gao@amd.com>
Tue, 19 Mar 2019 03:04:03 +0000 (11:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jun 2020 17:51:59 +0000 (13:51 -0400)
Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index fd3b9e21a5bd3fdde3424fd1c2f024348f598c3a..642d18e70860cee1259e837656b67f8e8934a40e 100644 (file)
@@ -686,6 +686,11 @@ static int nv_common_early_init(void *handle)
                        adev->rev_id = 0;
                adev->external_rev_id = adev->rev_id + 0xa;
                break;
+       case CHIP_SIENNA_CICHLID:
+               adev->cg_flags = 0;
+               adev->pg_flags = 0;
+               adev->external_rev_id = adev->rev_id + 0x28;
+               break;
        default:
                /* FIXME: not supported yet */
                return -EINVAL;
@@ -901,6 +906,7 @@ static int nv_common_set_clockgating_state(void *handle,
        case CHIP_NAVI10:
        case CHIP_NAVI14:
        case CHIP_NAVI12:
+       case CHIP_SIENNA_CICHLID:
                adev->nbio.funcs->update_medium_grain_clock_gating(adev,
                                state == AMD_CG_STATE_GATE);
                adev->nbio.funcs->update_medium_grain_light_sleep(adev,