summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorzhang sanshan <b51434@freescale.com>2016-04-14 12:06:34 +0800
committerfang hui <hui.fang@freescale.com>2016-04-29 10:00:59 +0800
commit4fe36fa14e5d76717927e676d30de99bd4544ab4 (patch)
treeb667d3847c32b82570de4bde1a9ca1fd9b2f404d /board
parent998d8cc04add25c0fb4b11351097ca00de6de8f7 (diff)
downloadu-boot-imx-4fe36fa14e5d76717927e676d30de99bd4544ab4.zip
u-boot-imx-4fe36fa14e5d76717927e676d30de99bd4544ab4.tar.gz
u-boot-imx-4fe36fa14e5d76717927e676d30de99bd4544ab4.tar.bz2
MA-7633-1 [Android-SD-EMMC] enable BCB partition in android
1 Add some APIs to operate BCB/command. 2 Add action to check the command of BCB. It can cover the case that power down when do factory-reset\ota in recovery mode. Signed-off-by: zhang sanshan <b51434@freescale.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/common/recovery.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/board/freescale/common/recovery.c b/board/freescale/common/recovery.c
index e6f2137..9fa31c4 100644
--- a/board/freescale/common/recovery.c
+++ b/board/freescale/common/recovery.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010-2014 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2010-2016 Freescale Semiconductor, Inc. All Rights Reserved.
*
* SPDX-License-Identifier: GPL-2.0+
*/
@@ -72,6 +72,11 @@ void check_recovery_mode(void)
} else if (check_recovery_cmd_file()) {
puts("Fastboot: Recovery command file found!\n");
setup_recovery_env();
+#ifdef CONFIG_BCB_SUPPORT
+ } else if (recovery_check_and_clean_command()) {
+ puts("Fastboot: BCB command found\n");
+ setup_recovery_env();
+#endif
} else {
puts("Fastboot: Normal\n");
}