drm/amdgpu: add mmhub v3_0_2 ip callback functions
authorHawking Zhang <Hawking.Zhang@amd.com>
Wed, 6 Apr 2022 10:28:53 +0000 (18:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2022 20:51:48 +0000 (16:51 -0400)
commit9fa57397d933a83f5fafc2e3bd4ab3626bf9aed9
tree47c06f33257a141e1c9b03aff2ed0a3d16af79a5
parentfd1e77d915bcbd65a5ee667b94b73628f77c818e
drm/amdgpu: add mmhub v3_0_2 ip callback functions

Unlike mmhub v3_0_0, there is no atc_l2 related
registers available in mmhub v3_0_2. Split the mmhub
v3_0_2 callback implementations from mmhub v3_0 so we
don't need to add ip version check when atc related
programming needs to be added to mmhub v3_0_0.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_2.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/mmhub_v3_0_2.h [new file with mode: 0644]