mirror of
https://xff.cz/git/u-boot/
synced 2026-01-10 20:16:21 +01:00
The limit needs to be raised as soon as possible to prevent boot loops on empty or removed battery. The default 450mA limit is crossed when eMMC or SD card starts seeing reads in SPL after DRAM was already enabled in TPL. Running this PMIC setup in main U-Boot binary is a bit too late, and 1.5A is a bit too low for a completely battery-less boot. That would need the input current limit to be raised before initializing DRAM in TPL and at least to 2A, because peak power consumption in Linux during boot is currently 8W. But this fix is good enough to prevent boot loops when the phone can still get ~100mA from the battery to cover the difference between 450 mA current limit and ~550 mA needed to load main U-Boot from eMMC while the DRAM is already initialized by TPL. Signed-off-by: Ondrej Jirman <megi@xff.cz>