Lines Matching +full:chg +full:- +full:int
1 /* SPDX-License-Identifier: GPL-2.0 */
14 /* Max ADC code represents full-scale range of 1.8V */
32 /* Default decimation - 1024 for rev2, 840 for pmic5 */
45 #define PMI_CHG_SCALE_1 -138890
55 #define DIE_TEMP_ADC7_SCALE_1 -60000
61 * struct vadc_map_pt - Map the graph representation for ADC channel
82 * struct vadc_linear_graph - Represent ADC characteristics.
97 * struct vadc_prescale_ratio - Represent scaling ratio for ADC input.
107 * enum vadc_scale_fn_type - Scaling function to convert ADC code to
114 * SCALE_PMI_CHG_TEMP: Conversion for PMI CHG temp
154 unsigned int *decimation;
155 unsigned int *hw_settle_1;
156 unsigned int *hw_settle_2;
159 int qcom_vadc_scale(enum vadc_scale_fn_type scaletype,
163 u16 adc_code, int *result_mdec);
166 int (*scale_fn)(const struct vadc_prescale_ratio *prescale,
167 const struct adc5_data *data, u16 adc_code, int *result);
170 int qcom_adc5_hw_scale(enum vadc_scale_fn_type scaletype,
173 u16 adc_code, int *result_mdec);
175 int qcom_vadc_decimation_from_dt(u32 value);