diff options
author | Hawking Zhang <Hawking.Zhang@amd.com> | 2023-03-06 15:59:27 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-03-15 18:45:27 -0400 |
commit | dabc114e4bac903c365bfe6d7b6e8ed7fa38f8ad (patch) | |
tree | 2fd95073f858960b249054156951e770fc7a4db8 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 65ba96e91b689c23d6fa99c11cfd65965dcddc47 (diff) | |
download | linux-dabc114e4bac903c365bfe6d7b6e8ed7fa38f8ad.tar.gz linux-dabc114e4bac903c365bfe6d7b6e8ed7fa38f8ad.tar.bz2 linux-dabc114e4bac903c365bfe6d7b6e8ed7fa38f8ad.zip |
drm/amdgpu: Move to common helper to query soc rev_id
Replace soc15, nv, soc21 get_rev_id callback with common
helper so we don't need to duplicate code when introduce
new asics.
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 5ae400ae5fee..c66706242254 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -1118,7 +1118,7 @@ void amdgpu_device_indirect_wreg(struct amdgpu_device *adev, u32 reg_addr, u32 reg_data); void amdgpu_device_indirect_wreg64(struct amdgpu_device *adev, u32 reg_addr, u64 reg_data); - +u32 amdgpu_device_get_rev_id(struct amdgpu_device *adev); bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type); bool amdgpu_device_has_dc_support(struct amdgpu_device *adev); |