summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorzhang sanshan <b51434@freescale.com>2016-04-14 12:06:34 +0800
committerzhang sanshan <b51434@freescale.com>2016-04-14 15:24:14 +0800
commita9289e4c1bfa8af172a77f24410fa0fc4276cf61 (patch)
tree56276041230e17970a85502798048dbf12190a13 /board/freescale
parent79d4702dd9366e478611a199ea9b7f2c2fb2bf45 (diff)
downloadu-boot-imx-a9289e4c1bfa8af172a77f24410fa0fc4276cf61.zip
u-boot-imx-a9289e4c1bfa8af172a77f24410fa0fc4276cf61.tar.gz
u-boot-imx-a9289e4c1bfa8af172a77f24410fa0fc4276cf61.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/freescale')
-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");
}