]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu: add pcie port function helpers for SOC21
authorXiaojian Du <Xiaojian.Du@amd.com>
Wed, 19 Jan 2022 07:09:54 +0000 (15:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 May 2022 14:36:13 +0000 (10:36 -0400)
These helpers will be used on NBIO v7.7.0.

Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc21.c

index 29acc5573f56196dee1c06465595aedc453148d0..9424020c0634f885fb3fb87b8d9966bba431dc30 100644 (file)
@@ -511,6 +511,8 @@ static int soc21_common_early_init(void *handle)
        adev->pcie_wreg = &soc21_pcie_wreg;
        adev->pcie_rreg64 = &soc21_pcie_rreg64;
        adev->pcie_wreg64 = &soc21_pcie_wreg64;
+       adev->pciep_rreg = amdgpu_device_pcie_port_rreg;
+       adev->pciep_wreg = amdgpu_device_pcie_port_wreg;
 
        /* TODO: will add them during VCN v2 implementation */
        adev->uvd_ctx_rreg = NULL;