#include "core_types.h"
#include "clk_mgr_internal.h"
#include "reg_helper.h"
#include "dm_helpers.h"
#include "rn_clk_mgr_vbios_smu.h"
#include <linux/delay.h>
#include "renoir_ip_offset.h"
#include "mp/mp_12_0_0_offset.h"
#include "mp/mp_12_0_0_sh_mask.h"
#define REG(reg_name) …
#define FN(reg_name, field) …
#include "logger_types.h"
#undef DC_LOGGER
#define DC_LOGGER …
#define smu_print(str, ...) …
#define VBIOSSMC_MSG_TestMessage …
#define VBIOSSMC_MSG_GetSmuVersion …
#define VBIOSSMC_MSG_PowerUpGfx …
#define VBIOSSMC_MSG_SetDispclkFreq …
#define VBIOSSMC_MSG_SetDprefclkFreq …
#define VBIOSSMC_MSG_PowerDownGfx …
#define VBIOSSMC_MSG_SetDppclkFreq …
#define VBIOSSMC_MSG_SetHardMinDcfclkByFreq …
#define VBIOSSMC_MSG_SetMinDeepSleepDcfclk …
#define VBIOSSMC_MSG_SetPhyclkVoltageByFreq …
#define VBIOSSMC_MSG_GetFclkFrequency …
#define VBIOSSMC_MSG_SetDisplayCount …
#define VBIOSSMC_MSG_EnableTmdp48MHzRefclkPwrDown …
#define VBIOSSMC_MSG_UpdatePmeRestore …
#define VBIOSSMC_MSG_IsPeriodicRetrainingDisabled …
#define VBIOSSMC_Status_BUSY …
#define VBIOSSMC_Result_OK …
#define VBIOSSMC_Result_Failed …
#define VBIOSSMC_Result_UnknownCmd …
#define VBIOSSMC_Result_CmdRejectedPrereq …
#define VBIOSSMC_Result_CmdRejectedBusy …
static uint32_t rn_smu_wait_for_response(struct clk_mgr_internal *clk_mgr, unsigned int delay_us, unsigned int max_retries)
{ … }
static int rn_vbios_smu_send_msg_with_param(struct clk_mgr_internal *clk_mgr,
unsigned int msg_id,
unsigned int param)
{ … }
int rn_vbios_smu_get_smu_version(struct clk_mgr_internal *clk_mgr)
{ … }
int rn_vbios_smu_set_dispclk(struct clk_mgr_internal *clk_mgr, int requested_dispclk_khz)
{ … }
int rn_vbios_smu_set_dprefclk(struct clk_mgr_internal *clk_mgr)
{ … }
int rn_vbios_smu_set_hard_min_dcfclk(struct clk_mgr_internal *clk_mgr, int requested_dcfclk_khz)
{ … }
int rn_vbios_smu_set_min_deep_sleep_dcfclk(struct clk_mgr_internal *clk_mgr, int requested_min_ds_dcfclk_khz)
{ … }
void rn_vbios_smu_set_phyclk(struct clk_mgr_internal *clk_mgr, int requested_phyclk_khz)
{ … }
int rn_vbios_smu_set_dppclk(struct clk_mgr_internal *clk_mgr, int requested_dpp_khz)
{ … }
void rn_vbios_smu_set_dcn_low_power_state(struct clk_mgr_internal *clk_mgr, enum dcn_pwr_state state)
{ … }
void rn_vbios_smu_enable_48mhz_tmdp_refclk_pwrdwn(struct clk_mgr_internal *clk_mgr, bool enable)
{ … }
void rn_vbios_smu_enable_pme_wa(struct clk_mgr_internal *clk_mgr)
{ … }
int rn_vbios_smu_is_periodic_retraining_disabled(struct clk_mgr_internal *clk_mgr)
{ … }