#include "hwmgr.h"
#include "vega10_hwmgr.h"
#include "vega10_smumgr.h"
#include "vega10_powertune.h"
#include "vega10_ppsmc.h"
#include "vega10_inc.h"
#include "pp_debug.h"
#include "soc15_common.h"
static const struct vega10_didt_config_reg SEDiDtTuningCtrlConfig_Vega10[] = …;
static const struct vega10_didt_config_reg SEDiDtCtrl3Config_vega10[] = …;
static const struct vega10_didt_config_reg SEDiDtCtrl2Config_Vega10[] = …;
static const struct vega10_didt_config_reg SEDiDtCtrl1Config_Vega10[] = …;
static const struct vega10_didt_config_reg SEDiDtWeightConfig_Vega10[] = …;
static const struct vega10_didt_config_reg SEDiDtCtrl0Config_Vega10[] = …;
static const struct vega10_didt_config_reg SEDiDtStallCtrlConfig_vega10[] = …;
static const struct vega10_didt_config_reg SEDiDtStallPatternConfig_vega10[] = …;
static const struct vega10_didt_config_reg SELCacConfig_Vega10[] = …;
static const struct vega10_didt_config_reg SEEDCStallPatternConfig_Vega10[] = …;
static const struct vega10_didt_config_reg SEEDCForceStallPatternConfig_Vega10[] = …;
static const struct vega10_didt_config_reg SEEDCStallDelayConfig_Vega10[] = …;
static const struct vega10_didt_config_reg SEEDCThresholdConfig_Vega10[] = …;
static const struct vega10_didt_config_reg SEEDCCtrlResetConfig_Vega10[] = …;
static const struct vega10_didt_config_reg SEEDCCtrlConfig_Vega10[] = …;
static const struct vega10_didt_config_reg SEEDCCtrlForceStallConfig_Vega10[] = …;
static const struct vega10_didt_config_reg GCDiDtDroopCtrlConfig_vega10[] = …;
static const struct vega10_didt_config_reg GCDiDtCtrl0Config_vega10[] = …;
static const struct vega10_didt_config_reg PSMSEEDCStallPatternConfig_Vega10[] = …;
static const struct vega10_didt_config_reg PSMSEEDCStallDelayConfig_Vega10[] = …;
static const struct vega10_didt_config_reg PSMSEEDCCtrlResetConfig_Vega10[] = …;
static const struct vega10_didt_config_reg PSMSEEDCCtrlConfig_Vega10[] = …;
static const struct vega10_didt_config_reg PSMGCEDCDroopCtrlConfig_vega10[] = …;
static const struct vega10_didt_config_reg PSMGCEDCCtrlResetConfig_vega10[] = …;
static const struct vega10_didt_config_reg PSMGCEDCCtrlConfig_vega10[] = …;
static const struct vega10_didt_config_reg AvfsPSMResetConfig_vega10[] = …;
static const struct vega10_didt_config_reg AvfsPSMInitConfig_vega10[] = …;
static int vega10_program_didt_config_registers(struct pp_hwmgr *hwmgr, const struct vega10_didt_config_reg *config_regs, enum vega10_didt_config_reg_type reg_type)
{ … }
static int vega10_program_gc_didt_config_registers(struct pp_hwmgr *hwmgr, const struct vega10_didt_config_reg *config_regs)
{ … }
static void vega10_didt_set_mask(struct pp_hwmgr *hwmgr, const bool enable)
{ … }
static int vega10_enable_cac_driving_se_didt_config(struct pp_hwmgr *hwmgr)
{ … }
static int vega10_disable_cac_driving_se_didt_config(struct pp_hwmgr *hwmgr)
{ … }
static int vega10_enable_psm_gc_didt_config(struct pp_hwmgr *hwmgr)
{ … }
static int vega10_disable_psm_gc_didt_config(struct pp_hwmgr *hwmgr)
{ … }
static int vega10_enable_se_edc_config(struct pp_hwmgr *hwmgr)
{ … }
static int vega10_disable_se_edc_config(struct pp_hwmgr *hwmgr)
{ … }
static int vega10_enable_psm_gc_edc_config(struct pp_hwmgr *hwmgr)
{ … }
static int vega10_disable_psm_gc_edc_config(struct pp_hwmgr *hwmgr)
{ … }
static int vega10_enable_se_edc_force_stall_config(struct pp_hwmgr *hwmgr)
{ … }
static int vega10_disable_se_edc_force_stall_config(struct pp_hwmgr *hwmgr)
{ … }
int vega10_enable_didt_config(struct pp_hwmgr *hwmgr)
{ … }
int vega10_disable_didt_config(struct pp_hwmgr *hwmgr)
{ … }
void vega10_initialize_power_tune_defaults(struct pp_hwmgr *hwmgr)
{ … }
int vega10_set_power_limit(struct pp_hwmgr *hwmgr, uint32_t n)
{ … }
int vega10_enable_power_containment(struct pp_hwmgr *hwmgr)
{ … }
int vega10_disable_power_containment(struct pp_hwmgr *hwmgr)
{ … }
static void vega10_set_overdrive_target_percentage(struct pp_hwmgr *hwmgr,
uint32_t adjust_percent)
{ … }
int vega10_power_control_set_level(struct pp_hwmgr *hwmgr)
{ … }