From: Hawking Zhang <[email protected]>

Add hwid for a new ip block named AIGC

Signed-off-by: Hawking Zhang <[email protected]>
Reviewed-by: Likun Gao <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h           | 1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 +
 drivers/gpu/drm/amd/include/soc15_hw_ip.h     | 1 +
 3 files changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h 
b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 923f44ade3d38..b0d2597d01358 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -796,6 +796,7 @@ enum amd_hw_ip_block_type {
        PCIE_HWIP,
        ISP_HWIP,
        ATU_HWIP,
+       AIGC_HWIP,
        MAX_HWIP
 };
 
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
index 00c1d73b9a0ce..87588d0c8a13b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
@@ -210,6 +210,7 @@ static const char *hw_id_names[HW_ID_MAX] = {
        [MP0_HWID]              = "MP0",
        [VPE_HWID]              = "VPE",
        [ATU_HWID]              = "ATU",
+       [AIGC_HWID]             = "AIGC",
 };
 
 static int hw_id_map[MAX_HWIP] = {
diff --git a/drivers/gpu/drm/amd/include/soc15_hw_ip.h 
b/drivers/gpu/drm/amd/include/soc15_hw_ip.h
index c2efc2d2bee1c..a20e59584dde7 100644
--- a/drivers/gpu/drm/amd/include/soc15_hw_ip.h
+++ b/drivers/gpu/drm/amd/include/soc15_hw_ip.h
@@ -101,5 +101,6 @@
 #define XGBE_HWID                                        216
 #define MP0_HWID                                         255
 #define ATU_HWID                                         294
+#define AIGC_HWID                                        295
 
 #endif
-- 
2.51.0

Reply via email to