From 2b5ac3c9b9017f10bc0e7742b7aa1e454ba339a6 Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Thu, 22 Aug 2013 02:54:05 +0200 Subject: [PATCH] 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. --- board/sunxi/board.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 24ba754f20..7029e43422 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -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) {