From: Tao Zhou Date: Sun, 9 Aug 2020 01:12:49 +0000 (+0800) Subject: drm/amdgpu: support athub cg setting for dimgrey_cavefish X-Git-Tag: accepted/tizen/unified/20230118.172025~8358^2~12^2~305 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4ed4f50d2af766f49904f91be1be9608a7b3127;p=platform%2Fkernel%2Flinux-rpi.git drm/amdgpu: support athub cg setting for dimgrey_cavefish Same as navy_flounder, the athub ip of dimgrey_cavefish is v2.1. Signed-off-by: Tao Zhou Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/athub_v2_1.c b/drivers/gpu/drm/amd/amdgpu/athub_v2_1.c index 939eca6..66c183d 100644 --- a/drivers/gpu/drm/amd/amdgpu/athub_v2_1.c +++ b/drivers/gpu/drm/amd/amdgpu/athub_v2_1.c @@ -74,6 +74,7 @@ int athub_v2_1_set_clockgating(struct amdgpu_device *adev, switch (adev->asic_type) { case CHIP_SIENNA_CICHLID: case CHIP_NAVY_FLOUNDER: + case CHIP_DIMGREY_CAVEFISH: athub_v2_1_update_medium_grain_clock_gating(adev, state == AMD_CG_STATE_GATE ? true : false); athub_v2_1_update_medium_grain_light_sleep(adev,