summaryrefslogtreecommitdiffstats
path: root/include/usb
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-09-27 12:56:30 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-09-27 14:02:21 +0200
commit470ac4a7ba37dc1c09f2d59ba0f7bf7519d45d92 (patch)
tree11d2a70f30857d80e8a849126bdd2e3204b7b798 /include/usb
parent02ade8d921def6b826163302afe6914a3543d175 (diff)
downloadbarebox-470ac4a7ba37dc1c09f2d59ba0f7bf7519d45d92.tar.gz
barebox-470ac4a7ba37dc1c09f2d59ba0f7bf7519d45d92.tar.xz
usbgadget: fastboot: Allow to automatically export the bbu handlers
We have a list of registered handlers which take a barebox update. Do the next step and allow to automatically export them via fastboot so that barebox can be updated via fastboot without manually exporting the partition. Since this may not be desirable in all cases this behaviour is configurable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb')
-rw-r--r--include/usb/fastboot.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/usb/fastboot.h b/include/usb/fastboot.h
index dab5a9a299..ced890c9ab 100644
--- a/include/usb/fastboot.h
+++ b/include/usb/fastboot.h
@@ -5,9 +5,16 @@
#include <file-list.h>
#include <usb/composite.h>
+/**
+ * struct f_fastboot_opts - options to configure the fastboot gadget
+ * @func_inst: The USB function instance to register on
+ * @files: A file_list containing the files (partitions) to export via fastboot
+ * @export_bbu: Automatically include the partitions provided by barebox update (bbu)
+ */
struct f_fastboot_opts {
struct usb_function_instance func_inst;
struct file_list *files;
+ bool export_bbu;
};
#endif /* _USB_FASTBOOT_H */