Searched refs:adc1 (Results 1 - 2 of 2) sorted by relevance
/drivers/mfd/ |
H A D | mc13xxx-core.c | 259 u32 adc0, adc1, old_adc0; local 280 adc1 = MC13XXX_ADC1_ADEN | MC13XXX_ADC1_ADTRIGIGN | MC13XXX_ADC1_ASC; 283 adc1 |= MC13XXX_ADC1_ADSEL; 289 adc1 |= 4 << MC13XXX_ADC1_CHAN1_SHIFT; 294 adc1 |= (channel & 0x7) << MC13XXX_ADC1_CHAN0_SHIFT; 295 adc1 |= MC13XXX_ADC1_RAND; 300 adc1 |= 4 << MC13XXX_ADC1_CHAN1_SHIFT; 308 adc1 |= ato << MC13783_ADC1_ATO_SHIFT; 310 adc1 |= MC13783_ADC1_ATOX; 317 mc13xxx_reg_write(mc13xxx, MC13XXX_ADC1, adc1); [all...] |
/drivers/iio/light/ |
H A D | tsl2563.c | 316 u16 adc0, adc1; local 348 adc1 = ret; 354 chip->data1 = normalize_adc(adc1, chip->gainlevel->gaintime); 378 * The basic formula is lux = c0 * adc0 - c1 * adc1, where c0 and c1 are 380 * kinds of light, determined by the ratio adc1/adc0 (basically the ratio 382 * lists the upper threshold of the adc1/adc0 ratio and the corresponding 429 static unsigned int adc_to_lux(u32 adc0, u32 adc1) argument 432 unsigned long ratio, lux, ch0 = adc0, ch1 = adc1;
|
Completed in 563 milliseconds