summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/imx-common/boot_mode.h
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2013-12-24 15:51:34 +0800
committerYe.Li <B37916@freescale.com>2013-12-27 11:45:46 +0800
commit92d33d1d1b29fc8143a12443fde983359895d3c0 (patch)
treecb9e1bb4797161a07ace974f809721fb1e99310b /arch/arm/include/asm/imx-common/boot_mode.h
parent14fdf5d545ef769a9a4d59e3042cd960efe608a3 (diff)
downloadu-boot-imx-92d33d1d1b29fc8143a12443fde983359895d3c0.zip
u-boot-imx-92d33d1d1b29fc8143a12443fde983359895d3c0.tar.gz
u-boot-imx-92d33d1d1b29fc8143a12443fde983359895d3c0.tar.bz2
ENGR00292902 ARM:imx6:sabresd/sabreauto Add android fastboot supporting
Support android features: fastboot, booti command and recovery for sabresd SD, sabresd eMMC, sabreauto SD, sabreauto NAND. For all booting media (SD, eMMC, NAND), inherits the partitions layout from v2009.08. Fastboot will detect the booting media to replace hardcoding fastboot device. SATA is not supported. FDT is supported to use the "unused" fields in bootimg header which requires the FDT to be combined into the boot.img. For non-FDT boot.img, the "unused" fields should left to NULL and is compatible to boot. Signed-off-by: Ye.Li <B37916@freescale.com>
Diffstat (limited to 'arch/arm/include/asm/imx-common/boot_mode.h')
-rw-r--r--arch/arm/include/asm/imx-common/boot_mode.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/include/asm/imx-common/boot_mode.h b/arch/arm/include/asm/imx-common/boot_mode.h
index 6d2df74..a037cd4 100644
--- a/arch/arm/include/asm/imx-common/boot_mode.h
+++ b/arch/arm/include/asm/imx-common/boot_mode.h
@@ -25,6 +25,26 @@
#define MAKE_CFGVAL(cfg1, cfg2, cfg3, cfg4) \
((cfg4) << 24) | ((cfg3) << 16) | ((cfg2) << 8) | (cfg1)
+enum boot_device {
+ WEIM_NOR_BOOT,
+ ONE_NAND_BOOT,
+ PATA_BOOT,
+ SATA_BOOT,
+ I2C_BOOT,
+ SPI_NOR_BOOT,
+ SD1_BOOT,
+ SD2_BOOT,
+ SD3_BOOT,
+ SD4_BOOT,
+ MMC1_BOOT,
+ MMC2_BOOT,
+ MMC3_BOOT,
+ MMC4_BOOT,
+ NAND_BOOT,
+ UNKNOWN_BOOT,
+ BOOT_DEV_NUM = UNKNOWN_BOOT,
+};
+
struct boot_mode {
const char *name;
unsigned cfg_val;
@@ -32,5 +52,6 @@ struct boot_mode {
void add_board_boot_modes(const struct boot_mode *p);
void boot_mode_apply(unsigned cfg_val);
+enum boot_device get_boot_device(void);
extern const struct boot_mode soc_boot_modes[];
#endif