diff options
author | fang hui <b31070@freescale.com> | 2015-11-12 14:52:39 +0800 |
---|---|---|
committer | fang hui <b31070@freescale.com> | 2015-11-13 17:00:58 +0800 |
commit | 9c723a7d146018be07f49f6162ba761973049b9b (patch) | |
tree | 7d7394e027daaaa395367c964cead334681b8db7 /include | |
parent | 54ea3f2ad69597486ed40a16e47aa41eea8f072b (diff) | |
download | u-boot-imx-9c723a7d146018be07f49f6162ba761973049b9b.zip u-boot-imx-9c723a7d146018be07f49f6162ba761973049b9b.tar.gz u-boot-imx-9c723a7d146018be07f49f6162ba761973049b9b.tar.bz2 |
MA-7251 - [evk_6ul]: Support boot conctrol for brillo
brillo need bootlader support boot control.
bootlader can choose which slot(partition) to boot based on
it's tactic.
The commit support boot control for evk6ul
Signed-off-by: fang hui <b31070@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/mx6ul_14x14_evk.h | 5 | ||||
-rw-r--r-- | include/configs/mx6ul_14x14_evk_brillo.h | 22 | ||||
-rw-r--r-- | include/fsl_fastboot.h | 13 |
3 files changed, 40 insertions, 0 deletions
diff --git a/include/configs/mx6ul_14x14_evk.h b/include/configs/mx6ul_14x14_evk.h index d87a4d8..40b1e28 100644 --- a/include/configs/mx6ul_14x14_evk.h +++ b/include/configs/mx6ul_14x14_evk.h @@ -427,4 +427,9 @@ #include "mx6ul_14x14_evk_android.h" #endif +#if defined(CONFIG_BRILLO_SUPPORT) +#include "mx6ul_14x14_evk_brillo.h" +#endif + + #endif diff --git a/include/configs/mx6ul_14x14_evk_brillo.h b/include/configs/mx6ul_14x14_evk_brillo.h new file mode 100644 index 0000000..014457e --- /dev/null +++ b/include/configs/mx6ul_14x14_evk_brillo.h @@ -0,0 +1,22 @@ + +/* + * Copyright (C) 2015 Freescale Semiconductor, Inc. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __MX6UL_EVK_BRILLO_H +#define __MX6UL_EVK_BRILLO_H + +#define CONFIG_ANDROID_BOOT_B_PARTITION_MMC 7 +#define CONFIG_ANDROID_SYSTEM_B_PARTITION_MMC 8 +#define CONFIG_ANDROID_SLOTMETA_PARTITION_MMC 9 + + +#define CONFIG_CMD_EXT2 +#define CONFIG_CMD_EXT4 +#define CONFIG_CMD_EXT4_WRITE +#define CONFIG_CMD_FAT +#define CONFIG_DOS_PARTITION + +#endif diff --git a/include/fsl_fastboot.h b/include/fsl_fastboot.h index 5a38d99..177c99a 100644 --- a/include/fsl_fastboot.h +++ b/include/fsl_fastboot.h @@ -33,11 +33,22 @@ #define FASTBOOT_MMC_USER_PARTITION_ID 0 #define FASTBOOT_MMC_NONE_PARTITION_ID -1 +#ifdef CONFIG_BRILLO_SUPPORT +#define FASTBOOT_PARTITION_BOOT_A "boot_a" +#define FASTBOOT_PARTITION_RECOVERY "recovery" +#define FASTBOOT_PARTITION_SYSTEM_A "system_a" +#define FASTBOOT_PARTITION_BOOTLOADER "bootloader" +#define FASTBOOT_PARTITION_DATA "data" +#define FASTBOOT_PARTITION_BOOT_B "boot_b" +#define FASTBOOT_PARTITION_SYSTEM_B "system_b" +#define FASTBOOT_PARTITION_SLOTMETA "slotmeta" +#else #define FASTBOOT_PARTITION_BOOT "boot" #define FASTBOOT_PARTITION_RECOVERY "recovery" #define FASTBOOT_PARTITION_SYSTEM "system" #define FASTBOOT_PARTITION_BOOTLOADER "bootloader" #define FASTBOOT_PARTITION_DATA "data" +#endif enum { DEV_SATA, @@ -169,4 +180,6 @@ void save_parts_values(struct fastboot_ptentry *ptn, int check_parts_values(struct fastboot_ptentry *ptn); #endif /*CONFIG_FASTBOOT_STORAGE_NAND*/ +int fastboot_tx_write_str(const char *buffer); + #endif /* FSL_FASTBOOT_H */ |