From daae245a544d8b23dfa74c6108c35cebef81b8e7 Mon Sep 17 00:00:00 2001 From: Xinyu Chen Date: Fri, 10 Sep 2010 17:17:12 +0800 Subject: ENGR00127368 UBOOT: Make the android recovery code common for platforms Move the android recovery codes into common/recovery.c. Cut the keypad detecting time. Now we only need detect there's POWER and HOME key pressing at the time scanning keyboard matrix. So user must hold these two keys when bootup to enter recovery mode. This can reduce the uboot boot time with recovery mode configured. Later /cache file checking for recovery command should be merged into the common/recovery.c Signed-off-by: Xinyu Chen --- lib_arm/board.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib_arm') diff --git a/lib_arm/board.c b/lib_arm/board.c index d6864bc..bc2b0bc 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -461,6 +461,10 @@ extern void davinci_eth_set_mac_addr (const u_int8_t *addr); board_late_init (); #endif +#ifdef CONFIG_ANDROID_RECOVERY + check_recovery_mode(); +#endif + #if defined(CONFIG_CMD_NET) #if defined(CONFIG_NET_MULTI) puts ("Net: "); -- cgit v1.1