aboutsummaryrefslogtreecommitdiff
path: root/include/fastboot.h
diff options
context:
space:
mode:
authorRoman Kovalivskyi2020-07-28 23:35:32 +0300
committerMarek Vasut2020-09-01 14:47:43 +0200
commit851737ab8922742732bea5f70407cb95cafcb3ee (patch)
treebde70e242207d0cf54401537d3de4f5d1f6abd64 /include/fastboot.h
parent73f4ebb659df4996e154b17f14866fb166447be0 (diff)
fastboot: Extend fastboot_set_reboot_flag with reboot reason
Extend fastboot_set_reboot_flag arguments with reboot reason so that it could handle different reboot cases in future. Signed-off-by: Roman Kovalivskyi <roman.kovalivskyi@globallogic.com>
Diffstat (limited to 'include/fastboot.h')
-rw-r--r--include/fastboot.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/fastboot.h b/include/fastboot.h
index 1933b1d98e3..14f4c68868d 100644
--- a/include/fastboot.h
+++ b/include/fastboot.h
@@ -41,6 +41,14 @@ enum {
};
/**
+ * Reboot reasons
+ */
+enum fastboot_reboot_reason {
+ FASTBOOT_REBOOT_REASON_BOOTLOADER,
+ FASTBOOT_REBOOT_REASONS_COUNT
+};
+
+/**
* fastboot_response() - Writes a response of the form "$tag$reason".
*
* @tag: The first part of the response
@@ -77,7 +85,7 @@ void fastboot_okay(const char *reason, char *response);
* which sets whatever flag your board specific Android bootloader flow
* requires in order to re-enter the bootloader.
*/
-int fastboot_set_reboot_flag(void);
+int fastboot_set_reboot_flag(enum fastboot_reboot_reason reason);
/**
* fastboot_set_progress_callback() - set progress callback