]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/admgpu/discovery: add NBIO v7.7 into the IP discovery list
authorXiaojian Du <Xiaojian.Du@amd.com>
Tue, 11 Jan 2022 07:01:39 +0000 (15:01 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 May 2022 14:36:13 +0000 (10:36 -0400)
This patch is to add NBIO v7.7 into the IP discovery list.

Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com>
Reviewed-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/amdgpu_discovery.c

index 7ffbe38450cc9f69fe5ff8f6aa8ade8268f3d63c..2188b9277a6d624ff064c7824bffcb03f805904f 100644 (file)
@@ -53,6 +53,7 @@
 #include "nbio_v2_3.h"
 #include "nbio_v4_3.h"
 #include "nbio_v7_2.h"
+#include "nbio_v7_7.h"
 #include "hdp_v5_0.h"
 #include "hdp_v6_0.h"
 #include "nv.h"
@@ -2200,6 +2201,10 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)
                adev->nbio.funcs = &nbio_v4_3_funcs;
                adev->nbio.hdp_flush_reg = &nbio_v4_3_hdp_flush_reg;
                break;
+       case IP_VERSION(7, 7, 0):
+               adev->nbio.funcs = &nbio_v7_7_funcs;
+               adev->nbio.hdp_flush_reg = &nbio_v7_7_hdp_flush_reg;
+               break;
        default:
                break;
        }