drm/amdgpu: split athub clock gating from mmhub
authorLe Ma <le.ma@amd.com>
Thu, 8 Aug 2019 06:54:12 +0000 (14:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 12 Aug 2019 17:47:48 +0000 (12:47 -0500)
commitbee7b51ac93a67c54b77cfa17c87ddde7c661988
tree5c79432f0b783341d9c0d517bb63775f3f22da27
parentf7ee1995282c804cef69ead5d3a8ba79b371dde2
drm/amdgpu: split athub clock gating from mmhub

Untie the bind of get/set athub CG state from mmhub, for cosmetic fix and Asic
not using mmhub 1.0. Besides, also fix wrong athub CG state in amdgpu_pm_info.

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/amdgpu/athub_v1_0.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/athub_v1_0.h [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c