Home
last modified time | relevance | path

Searched refs:voltage_read (Results 1 – 4 of 4) sorted by relevance

/openbmc/u-boot/board/freescale/common/
H A Dvid.c102 int i, ret, voltage_read = 0; in read_voltage_from_INA220() local
125 voltage_read /= NUM_READINGS; in read_voltage_from_INA220()
127 return voltage_read; in read_voltage_from_INA220()
135 int i, ret, voltage_read = 0; in read_voltage_from_IR() local
156 voltage_read += vol_mon * 1000; in read_voltage_from_IR()
160 voltage_read = DIV_ROUND_UP(voltage_read, 128); in read_voltage_from_IR()
163 voltage_read /= NUM_READINGS; in read_voltage_from_IR()
168 voltage_read -= board_vdd_drop_compensation(); in read_voltage_from_IR()
170 return voltage_read; in read_voltage_from_IR()
206 int voltage_read; in read_voltage() local
[all …]
H A Dzm7300.c174 uint16_t voltage_read; in zm_write_voltage() local
181 voltage_read = hex_to_1_10mv[ret]; in zm_write_voltage()
182 debug("voltage set to %dmV\n", voltage_read/10); in zm_write_voltage()
183 return voltage_read; in zm_write_voltage()
/openbmc/u-boot/board/freescale/t4qds/
H A Dt4240qds.c112 int i, ret, voltage_read = 0; in read_voltage() local
128 voltage_read += (vol_mon >> I2C_VOL_MONITOR_BUS_V_SHIFT) * 4; in read_voltage()
132 voltage_read /= NUM_READINGS; in read_voltage()
134 return voltage_read; in read_voltage()
/openbmc/u-boot/board/freescale/b4860qds/
H A Db4860qds.c106 int i, ret, voltage_read = 0; in read_voltage() local
122 voltage_read += (vol_mon >> I2C_VOL_MONITOR_BUS_V_SHIFT) * 4; in read_voltage()
126 voltage_read /= NUM_READINGS; in read_voltage()
128 return voltage_read; in read_voltage()