diff options
author | Dmitrii Merkurev | 2023-04-12 19:49:31 +0100 |
---|---|---|
committer | Tom Rini | 2023-05-05 17:48:44 -0400 |
commit | c8acbbbf0847744ff2ad98e9d8d4e11d5e37eda2 (patch) | |
tree | e37737cfec46839b48ab3e86d49239f9bf24c451 /include/fastboot.h | |
parent | 443d319180a68156ca152d164f446e6789004c1d (diff) |
net: share fastboot boot handle logic between transports
Introduce reboot, boot and continue commands support to
TCP fastboot by moving existing UDP logic into the common module.
Signed-off-by: Dmitrii Merkurev <dimorinny@google.com>
Cc: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
Cc: Simon Glass <sjg@chromium.org>
Сс: Joe Hershberger <joe.hershberger@ni.com>
Сс: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
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 07f4c8fa711..296451f89d4 100644 --- a/include/fastboot.h +++ b/include/fastboot.h @@ -124,6 +124,15 @@ void fastboot_init(void *buf_addr, u32 buf_size); void fastboot_boot(void); /** + * fastboot_handle_boot() - Shared implementation of system reaction to + * fastboot commands + * + * Making desceisions about device boot state (stay in fastboot, reboot + * to bootloader, reboot to OS, etc). + */ +void fastboot_handle_boot(int command, bool success); + +/** * fastboot_handle_command() - Handle fastboot command * * @cmd_string: Pointer to command string |