Lines Matching full:battery
145 * mxs_get_batt_volt() - Measure battery input voltage
147 * This function retrieves the battery input voltage and returns it.
158 debug("SPL: Battery Voltage = %dmV\n", volt); in mxs_get_batt_volt()
163 * mxs_is_batt_ready() - Test if the battery provides enough voltage to boot
165 * This function checks if the battery input voltage is higher than 3.6V and
174 * mxs_is_batt_good() - Test if battery is operational at all
176 * This function starts recharging the battery and tests if the input current
177 * provided by the 5V input recharging the battery is also sufficient to power
187 debug("SPL: Battery is good\n"); in mxs_is_batt_good()
210 debug("SPL: Battery Voltage too high\n"); in mxs_is_batt_good()
215 debug("SPL: Battery is good\n"); in mxs_is_batt_good()
223 debug("SPL: Battery Voltage too low\n"); in mxs_is_batt_good()
286 * and battery monitor.
315 /* 5V to battery handoff ... FIXME */ in mxs_src_power_init()
493 * errata 5837. 4P2 is disabled and sufficient battery power is in mxs_power_init_4p2_regulator()
616 /* Shutdown battery (none present) */ in mxs_power_enable_4p2()
703 * mxs_batt_boot() - Configure the power block to boot from battery input
705 * This function configures the power block to boot from the battery voltage
713 debug("SPL: Configuring power block to boot from battery\n"); in mxs_batt_boot()
722 /* 5V to battery handoff. */ in mxs_batt_boot()
761 * try booting from battery supply. If we can not boot from battery supply
845 * mxs_init_batt_bo() - Configure battery brownout threshold
847 * This function configures the battery input brownout threshold. The value
848 * at which the battery brownout happens is configured to 3.0V in the code.
855 debug("SPL: Initialising battery brown-out level to 3.0V\n"); in mxs_init_batt_bo()
913 /* 5V source detected, good battery detected. */ in mxs_power_configure_power_source()
918 /* 5V source detected, bad battery detected. */ in mxs_power_configure_power_source()
927 /* 5V not detected, booting from battery. */ in mxs_power_configure_power_source()
1195 * mxs_setup_batt_detect() - Start the battery voltage measurement logic
1198 * power initialization code to measure battery voltage and based on this
1199 * knowledge, decide whether to boot at all, boot from battery or boot
1204 debug("SPL: Starting battery voltage measurement logic\n"); in mxs_setup_batt_detect()