Lines Matching refs:adc_feature

168 	struct vf610_adc_feature adc_feature;  member
185 struct vf610_adc_feature *adc_feature = &info->adc_feature; in vf610_adc_calculate_rates() local
190 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
238 adc_feature->clk_sel = VF610_ADCIOC_BUSCLK_SET; in vf610_adc_cfg_init()
239 adc_feature->vol_ref = VF610_ADCIOC_VR_VREF_SET; in vf610_adc_cfg_init()
241 adc_feature->calibration = true; in vf610_adc_cfg_init()
242 adc_feature->ovwren = true; in vf610_adc_cfg_init()
244 adc_feature->res_mode = 12; in vf610_adc_cfg_init()
245 adc_feature->sample_rate = 1; in vf610_adc_cfg_init()
247 adc_feature->conv_mode = VF610_ADC_CONV_LOW_POWER; in vf610_adc_cfg_init()
254 struct vf610_adc_feature *adc_feature = &info->adc_feature; in vf610_adc_cfg_post_set() local
258 switch (adc_feature->clk_sel) { in vf610_adc_cfg_post_set()
276 switch (adc_feature->vol_ref) { in vf610_adc_cfg_post_set()
290 if (adc_feature->ovwren) in vf610_adc_cfg_post_set()
301 if (!info->adc_feature.calibration) in vf610_adc_calibration()
318 info->adc_feature.calibration = false; in vf610_adc_calibration()
323 struct vf610_adc_feature *adc_feature = &(info->adc_feature); in vf610_adc_cfg_set() local
329 if (adc_feature->conv_mode == VF610_ADC_CONV_LOW_POWER) in vf610_adc_cfg_set()
333 if (adc_feature->conv_mode == VF610_ADC_CONV_HIGH_SPEED) in vf610_adc_cfg_set()
341 struct vf610_adc_feature *adc_feature = &(info->adc_feature); in vf610_adc_sample_set() local
349 switch (adc_feature->res_mode) { in vf610_adc_sample_set()
366 switch (adc_feature->clk_div) { in vf610_adc_sample_set()
379 switch (adc_feature->clk_sel) { in vf610_adc_sample_set()
394 switch (adc_feature->lst_adder_index) { in vf610_adc_sample_set()
428 switch (adc_feature->sample_rate) { in vf610_adc_sample_set()
475 info->adc_feature.conv_mode = mode; in vf610_set_conversion_mode()
488 return info->adc_feature.conv_mode; in vf610_get_conversion_mode()
562 switch (info->adc_feature.res_mode) { in vf610_adc_read_data()
701 *val2 = info->adc_feature.res_mode; in vf610_read_raw()
705 *val = info->sample_freq_avail[info->adc_feature.sample_rate]; in vf610_read_raw()
731 info->adc_feature.sample_rate = i; in vf610_write_raw()
869 info->adc_feature.default_sample_time = DEFAULT_SAMPLE_TIME; in vf610_adc_probe()
870 device_property_read_u32(dev, "min-sample-time", &info->adc_feature.default_sample_time); in vf610_adc_probe()