imx233: display battery voltage in bootloader (along with percent)

Change-Id: I7b14496ba891a9ff2f6373571a11835d37abee4e
This commit is contained in:
Amaury Pouly 2012-08-29 16:23:20 +02:00
parent 60aeff686f
commit 27248888c3

View file

@ -103,7 +103,7 @@ static void usb_mode(int connect_timeout)
info.state == TRICKLE ? "trickle" :
info.state == TOPOFF ? "topoff" :
info.state == CHARGING ? "charging" : "<unknown>");
lcd_putsf(0, 8, "Battery: %d%%", battery_level());
lcd_putsf(0, 8, "Battery: %d%% (%d mV)", battery_level(), battery_voltage());
lcd_putsf(0, 9, "Die temp: %d°C [%d, %d]",
adc_read(ADC_DIE_TEMP), IMX233_DIE_TEMP_HIGH,
IMX233_DIE_TEMP_LOW);