mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
sunxi: Enable Falcon boot control
This enables Falcon boot mode to force normal u-boot mode power on by power button and immediately press the power button again within 1/10 second.
This commit is contained in:
@ -126,6 +126,17 @@ void sunxi_board_init(void)
|
||||
printf("Failed to set core voltage! Can't set CPU frequency\n");
|
||||
}
|
||||
|
||||
#if defined(CONFIG_SPL_OS_BOOT) && defined(CONFIG_AXP209_POWER)
|
||||
int spl_start_uboot(void)
|
||||
{
|
||||
if (axp209_poweron_by_dc())
|
||||
return 0;
|
||||
axp209_power_button(); /* Clear any pending button event */
|
||||
mdelay(100);
|
||||
return axp209_power_button();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SPL_DISPLAY_PRINT
|
||||
void spl_display_print(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user