[TOC]
AP power configures the minimum amount of power needed to boot the Application Processor.
The Kconfig option CONFIG_PLATFORM_EC_BOOT_AP_POWER_REQUIREMENTS
enables checking power
thresholds before booting the AP. See the file Kconfig.ap_power for all Kconfig
options related to this feature.
None required.
None required.
AP_POWER support does not enable any threads.
Use the battfake command to force the battery level, independent of the actual battery charge.
To verify the AP power thresholds, force the battery level below the
CONFIG_PLATFORM_EC_CHARGER_MIN_BAT_PCT_FOR_POWER_ON
setting and reboot the EC.
The EC should prevent the AP from powering up.
battfake
usage: battfake (-1 = use real level)
battfake 2
reboot
/* Verify that AP does ot boot */
battfak3 3
/* Verify that AP boots */
/* Restore normal operation */
battfake -1
For Herobrine, the minimum battery level to boot the AP without AC is 2 percent of the battery capacity and the minimum AC power to boot the AP with a battery is set to 10000 milliwats.
CONFIG_PLATFORM_EC_CHARGER_MIN_BAT_PCT_FOR_POWER_ON=2
CONFIG_PLATFORM_EC_CHARGER_MIN_POWER_MW_FOR_POWER_ON=10000