diff options
author | zhang sanshan <b51434@freescale.com> | 2016-04-14 12:06:34 +0800 |
---|---|---|
committer | zhang sanshan <b51434@freescale.com> | 2016-04-14 15:24:14 +0800 |
commit | a9289e4c1bfa8af172a77f24410fa0fc4276cf61 (patch) | |
tree | 56276041230e17970a85502798048dbf12190a13 /board/freescale | |
parent | 79d4702dd9366e478611a199ea9b7f2c2fb2bf45 (diff) | |
download | u-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.c | 7 |
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"); } |