drm/amdgpu/soc15: add clock gating functions for raven
authorHuang Rui <ray.huang@amd.com>
Wed, 18 Jan 2017 10:12:59 +0000 (18:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:52 +0000 (17:40 -0400)
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/soc15.c

index ff8decc1bae42172b82412c08933516d05e285af..cee2d8b62708ac261680f0733c8a07ac001b0eff 100644 (file)
@@ -819,6 +819,20 @@ static int soc15_common_set_clockgating_state(void *handle,
                soc15_update_df_medium_grain_clock_gating(adev,
                                state == AMD_CG_STATE_GATE ? true : false);
                break;
+       case CHIP_RAVEN:
+               nbio_v6_1_update_medium_grain_clock_gating(adev,
+                               state == AMD_CG_STATE_GATE ? true : false);
+               nbio_v6_1_update_medium_grain_light_sleep(adev,
+                               state == AMD_CG_STATE_GATE ? true : false);
+               soc15_update_hdp_light_sleep(adev,
+                               state == AMD_CG_STATE_GATE ? true : false);
+               soc15_update_drm_clock_gating(adev,
+                               state == AMD_CG_STATE_GATE ? true : false);
+               soc15_update_drm_light_sleep(adev,
+                               state == AMD_CG_STATE_GATE ? true : false);
+               soc15_update_rom_medium_grain_clock_gating(adev,
+                               state == AMD_CG_STATE_GATE ? true : false);
+               break;
        default:
                break;
        }