Home
last modified time | relevance | path

Searched refs:NUM_READINGS (Results 1 – 3 of 3) sorted by relevance

/openbmc/u-boot/board/freescale/common/
H A Dvid.c86 #define NUM_READINGS 4 /* prefer to be power of 2 for efficiency */ macro
106 for (i = 0; i < NUM_READINGS; i++) { in read_voltage_from_INA220()
125 voltage_read /= NUM_READINGS; in read_voltage_from_INA220()
139 for (i = 0; i < NUM_READINGS; i++) { in read_voltage_from_IR()
163 voltage_read /= NUM_READINGS; in read_voltage_from_IR()
260 udelay(NUM_READINGS * WAIT_FOR_ADC); in wait_for_voltage_stable()
271 udelay(NUM_READINGS * WAIT_FOR_ADC); in wait_for_voltage_stable()
305 debug("VID: Waited %d us\n", wait * NUM_READINGS * WAIT_FOR_ADC); in set_voltage_to_IR()
/openbmc/u-boot/board/freescale/t4qds/
H A Dt4240qds.c107 #define NUM_READINGS 4 /* prefer to be power of 2 for efficiency */ macro
115 for (i = 0; i < NUM_READINGS; i++) { in read_voltage()
132 voltage_read /= NUM_READINGS; in read_voltage()
167 udelay(wait * NUM_READINGS * WAIT_FOR_ADC); in wait_for_voltage_stable()
173 udelay(wait * NUM_READINGS * WAIT_FOR_ADC); in wait_for_voltage_stable()
193 debug("VID: Waited %d us\n", wait * NUM_READINGS * WAIT_FOR_ADC); in set_voltage()
/openbmc/u-boot/board/freescale/b4860qds/
H A Db4860qds.c102 #define NUM_READINGS 4 /* prefer to be power of 2 for efficiency */ macro
109 for (i = 0; i < NUM_READINGS; i++) { in read_voltage()
126 voltage_read /= NUM_READINGS; in read_voltage()