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:
Henrik Nordstrom
2013-08-22 02:54:05 +02:00
parent 2e97ddf2a5
commit 2b5ac3c9b9

View File

@ -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)
{