drm/amdgpu/mmhub2: set clock gating for navi12
authorXiaojie Yuan <xiaojie.yuan@amd.com>
Thu, 1 Aug 2019 07:47:15 +0000 (15:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 12 Aug 2019 17:47:47 +0000 (12:47 -0500)
add navi12 define

Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c

index d2f4775299c71a0be9d3b2fa1cba940e905dbaeb..8ee1225d1a18cad4c90c0cc8fc58c076f548dc9c 100644 (file)
@@ -407,6 +407,7 @@ int mmhub_v2_0_set_clockgating(struct amdgpu_device *adev,
        switch (adev->asic_type) {
        case CHIP_NAVI10:
        case CHIP_NAVI14:
+       case CHIP_NAVI12:
                mmhub_v2_0_update_medium_grain_clock_gating(adev,
                                state == AMD_CG_STATE_GATE ? true : false);
                mmhub_v2_0_update_medium_grain_light_sleep(adev,