drm/amdgpu: add ATHUB IP v3.0.1 Clock Gating support
authorTim Huang <tim.huang@amd.com>
Tue, 9 Aug 2022 08:26:05 +0000 (16:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Aug 2022 22:06:00 +0000 (18:06 -0400)
commitcede849e9e2755084798236735d045298f9d9979
tree42ab3eaa29d1426b936d027b3a35e0c38f87d3af
parent73c49a624a8db1ec38b138741203d9d7c76eedd7
drm/amdgpu: add ATHUB IP v3.0.1 Clock Gating support

Add ATHUB IP v3.0.1 in athub_v3_0_set_clockgating.

The regATHUB_MISC_CNTL has different offset for ATHUB IP v3.0.1,
so need to add IP version checking to use the right REG offset.

Signed-off-by: Tim Huang <tim.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/athub_v3_0.c