diff options
author | Roman Kovalivskyi <roman.kovalivskyi@globallogic.com> | 2020-07-28 23:35:34 +0300 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2020-09-01 14:47:43 +0200 |
commit | 0ebf9842e56c5b8cb7cb1f990bb452cc14af6225 (patch) | |
tree | ebf946bbe1c92eadb323856ff9471b21732e85f2 /include/fastboot.h | |
parent | 2b2a771b40876c3db456705d5dcc5b60249d4075 (diff) | |
download | u-boot-0ebf9842e56c5b8cb7cb1f990bb452cc14af6225.zip u-boot-0ebf9842e56c5b8cb7cb1f990bb452cc14af6225.tar.gz u-boot-0ebf9842e56c5b8cb7cb1f990bb452cc14af6225.tar.bz2 |
fastboot: Add default fastboot_set_reboot_flag implementation
Default implementation of fastboot_set_reboot_flag function that depends
on "bcb" commands could be used in general case if there are no need to
make any platform-specific implementation, otherwise it could be
disabled via Kconfig option FASTBOOT_USE_BCB_SET_REBOOT_FLAG.
Please note that FASTBOOT_USE_BCB_SET_REBOOT_FLAG is mutually exclusive
with some platforms which already have their own implementation of this
function.
Signed-off-by: Roman Kovalivskyi <roman.kovalivskyi@globallogic.com>
Diffstat (limited to 'include/fastboot.h')
-rw-r--r-- | include/fastboot.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/fastboot.h b/include/fastboot.h index b86b508..8e9ee80 100644 --- a/include/fastboot.h +++ b/include/fastboot.h @@ -53,6 +53,15 @@ enum fastboot_reboot_reason { }; /** + * BCB boot commands + */ +static const char * const fastboot_boot_cmds[] = { + [FASTBOOT_REBOOT_REASON_BOOTLOADER] = "bootonce-bootloader", + [FASTBOOT_REBOOT_REASON_FASTBOOTD] = "boot-fastboot", + [FASTBOOT_REBOOT_REASON_RECOVERY] = "boot-recovery" +}; + +/** * fastboot_response() - Writes a response of the form "$tag$reason". * * @tag: The first part of the response |