#include "dccg.h"
#include "rn_clk_mgr.h"
#include "dcn20/dcn20_clk_mgr.h"
#include "dml/dcn20/dcn20_fpu.h"
#include "dce100/dce_clk_mgr.h"
#include "rn_clk_mgr_vbios_smu.h"
#include "reg_helper.h"
#include "core_types.h"
#include "dm_helpers.h"
#include "atomfirmware.h"
#include "clk/clk_10_0_2_offset.h"
#include "clk/clk_10_0_2_sh_mask.h"
#include "renoir_ip_offset.h"
#define SMU_VER_55_51_0 …
#define REG(reg_name) …
static int rn_get_active_display_cnt_wa(struct dc *dc, struct dc_state *context)
{ … }
static void rn_set_low_power_state(struct clk_mgr *clk_mgr_base)
{ … }
static void rn_update_clocks_update_dpp_dto(struct clk_mgr_internal *clk_mgr,
struct dc_state *context, int ref_dpp_clk, bool safe_to_lower)
{ … }
static void rn_update_clocks(struct clk_mgr *clk_mgr_base,
struct dc_state *context,
bool safe_to_lower)
{ … }
static int get_vco_frequency_from_reg(struct clk_mgr_internal *clk_mgr)
{ … }
static void rn_dump_clk_registers_internal(struct rn_clk_internal *internal, struct clk_mgr *clk_mgr_base)
{ … }
static void rn_dump_clk_registers(struct clk_state_registers_and_bypass *regs_and_bypass,
struct clk_mgr *clk_mgr_base, struct clk_log_info *log_info)
{ … }
static void rn_enable_pme_wa(struct clk_mgr *clk_mgr_base)
{ … }
static void rn_init_clocks(struct clk_mgr *clk_mgr)
{ … }
static void build_watermark_ranges(struct clk_bw_params *bw_params, struct pp_smu_wm_range_sets *ranges)
{ … }
static void rn_notify_wm_ranges(struct clk_mgr *clk_mgr_base)
{ … }
static bool rn_are_clock_states_equal(struct dc_clocks *a,
struct dc_clocks *b)
{ … }
static void rn_notify_link_rate_change(struct clk_mgr *clk_mgr_base, struct dc_link *link)
{ … }
static struct clk_mgr_funcs dcn21_funcs = …;
static struct clk_bw_params rn_bw_params = …;
static unsigned int find_socclk_for_voltage(struct dpm_clocks *clock_table, unsigned int voltage)
{ … }
static unsigned int find_dcfclk_for_voltage(struct dpm_clocks *clock_table, unsigned int voltage)
{ … }
static void rn_clk_mgr_helper_populate_bw_params(struct clk_bw_params *bw_params, struct dpm_clocks *clock_table, struct integrated_info *bios_info)
{ … }
void rn_clk_mgr_construct(
struct dc_context *ctx,
struct clk_mgr_internal *clk_mgr,
struct pp_smu_funcs *pp_smu,
struct dccg *dccg)
{ … }