/* Name: ddr3_tip_a38x_get_freq_config. Desc: Args: Notes: Returns: MV_OK if success, other error code if fail.  */
static int ddr3_tip_a38x_get_freq_config(u8 dev_num, enum mv_ddr_freq freq, struct hws_tip_freq_config_info *freq_config_info)
/* Name: ddr3_tip_a38x_get_freq_config. Desc: Args: Notes: Returns: MV_OK if success, other error code if fail.  */
static int ddr3_tip_a38x_get_freq_config(u8 dev_num, enum mv_ddr_freq freq, struct hws_tip_freq_config_info *freq_config_info)
{
	if (a38x_bw_per_freq[freq] == 0xff)
		return MV_NOT_SUPPORTED;
	if (freq_config_info == NULL)
		return MV_BAD_PARAM;
	freq_config_info->bw_per_freq = a38x_bw_per_freq[freq];
	freq_config_info->rate_per_freq = a38x_rate_per_freq[freq];
	freq_config_info->is_supported = 1;
	return MV_OK;
}