diff options
author | Ye Li <ye.li@nxp.com> | 2016-03-10 10:48:24 +0800 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2016-03-25 15:59:38 +0800 |
commit | 23d63ff185929fff5e392efc853d69b606ba081a (patch) | |
tree | 9f7175ba6d1f67a0cc9f0e76da1401c9e1e96be6 /include/recovery.h | |
parent | 5096e572667ff41217deb4ba9b1bd15e93fa6b59 (diff) | |
download | u-boot-imx-23d63ff185929fff5e392efc853d69b606ba081a.zip u-boot-imx-23d63ff185929fff5e392efc853d69b606ba081a.tar.gz u-boot-imx-23d63ff185929fff5e392efc853d69b606ba081a.tar.bz2 |
MLK-12527-2 android: Add FSL android fastboot support
Integrate the FSL android fastboot features into community's fastboot.
1. Use USB gadget g_dnl driver
2. Integrate the FSL SD/SATA/NAND flash operations, since the GPT and
EFI partitions are not support by i.MX.
3. Add FDT support to community's android image.
4. Add a new boot command "boota" for android image boot. The boota
implements to load ramdisk and fdt to their loading addresses
specified in boot.img header, while bootm won't do it for android image.
5. Support the authentication of boot.img at the "load_addr" for
both SD and NAND.
6. We use new configuration CONFIG_FSL_FASTBOOT for Freescale's fastboot
with relevant header file "fsl_fastboot.h". While disabling the
configuration, the community fastboot is used.
7. Overwrite the cmdline in boot.img by using bootargs saved in local environment.
8. Add recovery and reboot-bootloader support.
Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'include/recovery.h')
-rw-r--r-- | include/recovery.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/recovery.h b/include/recovery.h new file mode 100644 index 0000000..4c368c6 --- /dev/null +++ b/include/recovery.h @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2010-2016 Freescale Semiconductor, Inc. All Rights Reserved. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __RECOVERY_H_ +#define __RECOVERY_H_ + +struct reco_envs { + char *cmd; + char *args; +}; + +void check_recovery_mode(void); +int recovery_check_and_clean_flag(void); +int check_recovery_cmd_file(void); +void board_recovery_setup(void); + +#endif |