diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/cz_smc.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/cz_smc.c | 13 | 
1 files changed, 4 insertions, 9 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/cz_smc.c b/drivers/gpu/drm/amd/amdgpu/cz_smc.c index ac7fee7b7eca..aed7033c0973 100644 --- a/drivers/gpu/drm/amd/amdgpu/cz_smc.c +++ b/drivers/gpu/drm/amd/amdgpu/cz_smc.c @@ -29,6 +29,8 @@  #include "cz_smumgr.h"  #include "smu_ucode_xfer_cz.h"  #include "amdgpu_ucode.h" +#include "cz_dpm.h" +#include "vi_dpm.h"  #include "smu/smu_8_0_d.h"  #include "smu/smu_8_0_sh_mask.h" @@ -48,7 +50,7 @@ static struct cz_smu_private_data *cz_smu_get_priv(struct amdgpu_device *adev)  	return priv;  } -int cz_send_msg_to_smc_async(struct amdgpu_device *adev, u16 msg) +static int cz_send_msg_to_smc_async(struct amdgpu_device *adev, u16 msg)  {  	int i;  	u32 content = 0, tmp; @@ -99,13 +101,6 @@ int cz_send_msg_to_smc(struct amdgpu_device *adev, u16 msg)  	return 0;  } -int cz_send_msg_to_smc_with_parameter_async(struct amdgpu_device *adev, -						u16 msg, u32 parameter) -{ -	WREG32(mmSMU_MP1_SRBM2P_ARG_0, parameter); -	return cz_send_msg_to_smc_async(adev, msg); -} -  int cz_send_msg_to_smc_with_parameter(struct amdgpu_device *adev,  						u16 msg, u32 parameter)  { @@ -140,7 +135,7 @@ int cz_read_smc_sram_dword(struct amdgpu_device *adev, u32 smc_address,  	return 0;  } -int cz_write_smc_sram_dword(struct amdgpu_device *adev, u32 smc_address, +static int cz_write_smc_sram_dword(struct amdgpu_device *adev, u32 smc_address,  						u32 value, u32 limit)  {  	int ret; |