Searched refs:voltage_read (Results 1 – 4 of 4) sorted by relevance
/openbmc/u-boot/board/freescale/common/ |
H A D | vid.c | 102 int i, ret, voltage_read = 0; in read_voltage_from_INA220() local 121 voltage_read += (vol_mon >> I2C_VOL_MONITOR_BUS_V_SHIFT) * 4; in read_voltage_from_INA220() 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() [all …]
|
H A D | zm7300.c | 174 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 D | t4240qds.c | 112 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 D | b4860qds.c | 106 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()
|