Lines Matching refs:iadc_write
131 static int iadc_write(struct iadc_chip *iadc, u16 offset, u8 data) in iadc_write() function
141 ret = iadc_write(iadc, IADC_SEC_ACCESS, IADC_SEC_ACCESS_DATA); in iadc_reset()
149 ret = iadc_write(iadc, IADC_SEC_ACCESS, IADC_SEC_ACCESS_DATA); in iadc_reset()
155 return iadc_write(iadc, IADC_PERH_RESET_CTL3, data); in iadc_reset()
160 return iadc_write(iadc, IADC_EN_CTL1, state ? IADC_EN_CTL1_SET : 0); in iadc_set_state()
204 ret = iadc_write(iadc, IADC_MODE_CTL, mode); in iadc_configure()
209 ret = iadc_write(iadc, IADC_CH_SEL_CTL, channel); in iadc_configure()
215 ret = iadc_write(iadc, IADC_DIG_PARAM, decim); in iadc_configure()
220 ret = iadc_write(iadc, IADC_HW_SETTLE_DELAY, IADC_DEF_HW_SETTLE_TIME); in iadc_configure()
224 ret = iadc_write(iadc, IADC_FAST_AVG_CTL, IADC_DEF_AVG_SAMPLES); in iadc_configure()
229 ret = iadc_write(iadc, IADC_FAST_AVG_EN, IADC_FAST_AVG_EN_SET); in iadc_configure()
231 ret = iadc_write(iadc, IADC_FAST_AVG_EN, 0); in iadc_configure()
244 return iadc_write(iadc, IADC_CONV_REQ, IADC_CONV_REQ_SET); in iadc_configure()