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 /include | |
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 'include')
-rw-r--r-- | include/configs/mx6sabreandroid_common.h | 5 | ||||
-rw-r--r-- | include/configs/mx6slevkandroid.h | 5 | ||||
-rw-r--r-- | include/configs/mx6sxsabreautoandroid.h | 5 | ||||
-rw-r--r-- | include/configs/mx6sxsabresdandroid.h | 5 | ||||
-rw-r--r-- | include/configs/mx6ul_14x14_evk_android.h | 3 | ||||
-rw-r--r-- | include/configs/mx7dsabresdandroid.h | 5 | ||||
-rw-r--r-- | include/fsl_fastboot.h | 1 | ||||
-rw-r--r-- | include/recovery.h | 3 |
8 files changed, 25 insertions, 7 deletions
diff --git a/include/configs/mx6sabreandroid_common.h b/include/configs/mx6sabreandroid_common.h index d2be182..ae23923 100644 --- a/include/configs/mx6sabreandroid_common.h +++ b/include/configs/mx6sabreandroid_common.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2015 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright (C) 2013-2016 Freescale Semiconductor, Inc. All Rights Reserved. * * SPDX-License-Identifier: GPL-2.0+ */ @@ -22,6 +22,8 @@ #define CONFIG_G_DNL_MANUFACTURER "FSL" #define CONFIG_CMD_FASTBOOT +#define CONFIG_CMD_READ +#define CONFIG_BCB_SUPPORT #define CONFIG_ANDROID_BOOT_IMAGE #define CONFIG_FASTBOOT_FLASH @@ -42,6 +44,7 @@ #define CONFIG_ANDROID_RECOVERY_PARTITION_MMC 2 #define CONFIG_ANDROID_CACHE_PARTITION_MMC 6 #define CONFIG_ANDROID_DATA_PARTITION_MMC 4 +#define CONFIG_ANDROID_MISC_PARTITION_MMC 8 #if defined(CONFIG_FASTBOOT_STORAGE_NAND) #define ANDROID_FASTBOOT_NAND_PARTS "16m@64m(boot) 16m@80m(recovery) 810m@96m(android_root)ubifs" diff --git a/include/configs/mx6slevkandroid.h b/include/configs/mx6slevkandroid.h index 3c3b2ce..1eaf78a 100644 --- a/include/configs/mx6slevkandroid.h +++ b/include/configs/mx6slevkandroid.h @@ -1,6 +1,6 @@ /* - * Copyright (C) 2013-2015 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright (C) 2013-2016 Freescale Semiconductor, Inc. All Rights Reserved. * * SPDX-License-Identifier: GPL-2.0+ */ @@ -25,6 +25,8 @@ #define CONFIG_G_DNL_MANUFACTURER "FSL" #define CONFIG_CMD_FASTBOOT +#define CONFIG_CMD_READ +#define CONFIG_BCB_SUPPORT #define CONFIG_ANDROID_BOOT_IMAGE #define CONFIG_FASTBOOT_FLASH @@ -39,6 +41,7 @@ #define CONFIG_ANDROID_RECOVERY_PARTITION_MMC 2 #define CONFIG_ANDROID_CACHE_PARTITION_MMC 6 #define CONFIG_ANDROID_DATA_PARTITION_MMC 4 +#define CONFIG_ANDROID_MISC_PARTITION_MMC 8 #define CONFIG_CMD_BOOTA #define CONFIG_SUPPORT_RAW_INITRD diff --git a/include/configs/mx6sxsabreautoandroid.h b/include/configs/mx6sxsabreautoandroid.h index e21c456..7cebe49 100644 --- a/include/configs/mx6sxsabreautoandroid.h +++ b/include/configs/mx6sxsabreautoandroid.h @@ -1,6 +1,6 @@ /* - * Copyright (C) 2014-2015 Freescale Semiconductor, Inc. + * Copyright (C) 2014-2016 Freescale Semiconductor, Inc. * * SPDX-License-Identifier: GPL-2.0+ */ @@ -23,6 +23,8 @@ #define CONFIG_G_DNL_MANUFACTURER "FSL" #define CONFIG_CMD_FASTBOOT +#define CONFIG_CMD_READ +#define CONFIG_BCB_SUPPORT #define CONFIG_ANDROID_BOOT_IMAGE #define CONFIG_FASTBOOT_FLASH @@ -45,6 +47,7 @@ #define CONFIG_ANDROID_RECOVERY_PARTITION_MMC 2 #define CONFIG_ANDROID_CACHE_PARTITION_MMC 6 #define CONFIG_ANDROID_DATA_PARTITION_MMC 4 +#define CONFIG_ANDROID_MISC_PARTITION_MMC 8 #define CONFIG_CMD_BOOTA #define CONFIG_SUPPORT_RAW_INITRD diff --git a/include/configs/mx6sxsabresdandroid.h b/include/configs/mx6sxsabresdandroid.h index 68f86df..7d8c64e 100644 --- a/include/configs/mx6sxsabresdandroid.h +++ b/include/configs/mx6sxsabresdandroid.h @@ -1,6 +1,6 @@ /* - * Copyright (C) 2014-2015 Freescale Semiconductor, Inc. + * Copyright (C) 2014-2016 Freescale Semiconductor, Inc. * * SPDX-License-Identifier: GPL-2.0+ */ @@ -23,6 +23,8 @@ #define CONFIG_G_DNL_MANUFACTURER "FSL" #define CONFIG_CMD_FASTBOOT +#define CONFIG_CMD_READ +#define CONFIG_BCB_SUPPORT #define CONFIG_ANDROID_BOOT_IMAGE #define CONFIG_FASTBOOT_FLASH @@ -37,6 +39,7 @@ #define CONFIG_ANDROID_RECOVERY_PARTITION_MMC 2 #define CONFIG_ANDROID_CACHE_PARTITION_MMC 6 #define CONFIG_ANDROID_DATA_PARTITION_MMC 4 +#define CONFIG_ANDROID_MISC_PARTITION_MMC 8 #define CONFIG_CMD_BOOTA #define CONFIG_SUPPORT_RAW_INITRD diff --git a/include/configs/mx6ul_14x14_evk_android.h b/include/configs/mx6ul_14x14_evk_android.h index 9d6a267..71c94e0 100644 --- a/include/configs/mx6ul_14x14_evk_android.h +++ b/include/configs/mx6ul_14x14_evk_android.h @@ -1,6 +1,6 @@ /* - * Copyright (C) 2015 Freescale Semiconductor, Inc. + * Copyright (C) 2015-2016 Freescale Semiconductor, Inc. * * SPDX-License-Identifier: GPL-2.0+ */ @@ -23,6 +23,7 @@ #define CONFIG_G_DNL_MANUFACTURER "FSL" #define CONFIG_CMD_FASTBOOT +#define CONFIG_BCB_SUPPORT #define CONFIG_ANDROID_BOOT_IMAGE #define CONFIG_FASTBOOT_FLASH diff --git a/include/configs/mx7dsabresdandroid.h b/include/configs/mx7dsabresdandroid.h index 3ced17f..c8518a6 100644 --- a/include/configs/mx7dsabresdandroid.h +++ b/include/configs/mx7dsabresdandroid.h @@ -1,6 +1,6 @@ /* - * Copyright (C) 2015 Freescale Semiconductor, Inc. + * Copyright (C) 2015-2016 Freescale Semiconductor, Inc. * * SPDX-License-Identifier: GPL-2.0+ */ @@ -23,6 +23,8 @@ #define CONFIG_G_DNL_MANUFACTURER "FSL" #define CONFIG_CMD_FASTBOOT +#define CONFIG_CMD_READ +#define CONFIG_BCB_SUPPORT #define CONFIG_ANDROID_BOOT_IMAGE #define CONFIG_FASTBOOT_FLASH @@ -36,6 +38,7 @@ #define CONFIG_ANDROID_RECOVERY_PARTITION_MMC 2 #define CONFIG_ANDROID_CACHE_PARTITION_MMC 6 #define CONFIG_ANDROID_DATA_PARTITION_MMC 4 +#define CONFIG_ANDROID_MISC_PARTITION_MMC 8 #define CONFIG_CMD_BOOTA #define CONFIG_SUPPORT_RAW_INITRD diff --git a/include/fsl_fastboot.h b/include/fsl_fastboot.h index 56ffdd0..8301f33 100644 --- a/include/fsl_fastboot.h +++ b/include/fsl_fastboot.h @@ -158,6 +158,7 @@ void fastboot_flash_dump_ptn(void); /* Check the board special boot mode reboot to fastboot mode. */ int fastboot_check_and_clean_flag(void); +int fastboot_check_and_clean_command(void); /* Set the flag which reboot to fastboot mode*/ void fastboot_enable_flag(void); diff --git a/include/recovery.h b/include/recovery.h index 1e0492a..bd3d010 100644 --- a/include/recovery.h +++ b/include/recovery.h @@ -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+ */ @@ -14,6 +14,7 @@ struct reco_envs { void check_recovery_mode(void); int recovery_check_and_clean_flag(void); +int recovery_check_and_clean_command(void); int check_recovery_cmd_file(void); void board_recovery_setup(void); |