diff options
author | faqiang.zhu <faqiang.zhu@nxp.com> | 2019-07-09 18:52:12 +0800 |
---|---|---|
committer | Ji Luo <ji.luo@nxp.com> | 2020-05-18 09:45:08 +0800 |
commit | 3f96c0ddf6ba76d0bb1cb7240fed2a3851530e05 (patch) | |
tree | aef8177ca6745335eb770b9c78fbcfc9e7496bd7 /drivers | |
parent | 5f9e35bae7fa2a469739d34d498e52052e3177a2 (diff) |
MA-14916-10 fix fastboot reboot bootloader issue
In Android, the reboot bootloader flag is written to misc partition, in
the boot flow, u-boot will check that message to decide whether enter
fastboot mode or not. To be compatible with the common implemention,
keep the fastboot_set_reboot_flag there and redefine it to avoid the
error return value which block the reboot process.
Change-Id: Ifb55236d5a5daf3edd124d3ed01851ff6e916e1a
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
(cherry picked from commit aa78cbe3d3148ab99ea039ede767e6d1152092b4)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/fastboot/fb_fsl/fb_fsl_command.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/fastboot/fb_fsl/fb_fsl_command.c b/drivers/fastboot/fb_fsl/fb_fsl_command.c index 938770373b..83c2eccb1d 100644 --- a/drivers/fastboot/fb_fsl/fb_fsl_command.c +++ b/drivers/fastboot/fb_fsl/fb_fsl_command.c @@ -722,6 +722,19 @@ static void erase(char *cmd, char *response) } #endif +/** + * fastboot_set_reboot_flag() - Set flag to indicate reboot-bootloader + * + * This is a redefinition, since BSP dose not need the function of + * "reboot into bootloader", and with BCB support, the flag can be + * set with another way. Redefine this function to override the weak + * definition to avoid error return value. + */ +int fastboot_set_reboot_flag(void) +{ + return 0; +} + #if CONFIG_IS_ENABLED(FASTBOOT_UUU_SUPPORT) /** * run_ucmd() - Execute the UCmd command |