Searched refs:adc_feature (Results 1 – 2 of 2) sorted by relevance
168 struct vf610_adc_feature adc_feature; member185 struct vf610_adc_feature *adc_feature = &info->adc_feature; in vf610_adc_calculate_rates() local190 adck_rate = info->max_adck_rate[adc_feature->conv_mode]; in vf610_adc_calculate_rates()195 adc_feature->clk_div = 1 << fls(divisor + 1); in vf610_adc_calculate_rates()198 adc_feature->clk_div = 8; in vf610_adc_calculate_rates()201 adck_rate = ipg_rate / adc_feature->clk_div; in vf610_adc_calculate_rates()208 lst_addr_min = adc_feature->default_sample_time / adck_period; in vf610_adc_calculate_rates()211 adc_feature->lst_adder_index = i; in vf610_adc_calculate_rates()230 (25 + vf610_lst_adder[adc_feature->lst_adder_index])); in vf610_adc_calculate_rates()235 struct vf610_adc_feature *adc_feature = &info->adc_feature; in vf610_adc_cfg_init() local[all …]
120 struct imx7d_adc_feature adc_feature; member181 info->adc_feature.clk_pre_div = IMX7D_ADC_ANALOG_CLK_PRE_DIV_4; in imx7d_adc_feature_config()182 info->adc_feature.avg_num = IMX7D_ADC_AVERAGE_NUM_32; in imx7d_adc_feature_config()183 info->adc_feature.core_time_unit = 1; in imx7d_adc_feature_config()188 struct imx7d_adc_feature *adc_feature = &info->adc_feature; in imx7d_adc_sample_rate_set() local206 adc_analogure_clk = imx7d_adc_analogue_clk[adc_feature->clk_pre_div]; in imx7d_adc_sample_rate_set()210 sample_rate |= adc_feature->core_time_unit; in imx7d_adc_sample_rate_set()262 cfg2 |= imx7d_adc_average_num[info->adc_feature.avg_num]; in imx7d_adc_channel_set()276 u32 core_time_unit = info->adc_feature.core_time_unit; in imx7d_adc_get_sample_rate()