summaryrefslogtreecommitdiffstats
path: root/include/usb/fastboot.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-07-17 07:25:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-07-24 08:32:56 +0200
commit3d5080aae90dffa3e3ea702f2efef8c5f9aaf372 (patch)
tree0832defbf16b37a987642223dfd47ceb7a485eae /include/usb/fastboot.h
parent0bd652f62a5406aed7fbb3e0349b8c787bde6953 (diff)
downloadbarebox-3d5080aae90dffa3e3ea702f2efef8c5f9aaf372.tar.gz
USB: gadget: Add Android fastboot support
The Android fastboot protocol Can be used to update firmware and to issue other lowlevel commands to the bootloader. This adds a fastboot implementation based on the U-Boot fatboot code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb/fastboot.h')
-rw-r--r--include/usb/fastboot.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/usb/fastboot.h b/include/usb/fastboot.h
new file mode 100644
index 0000000..dab5a9a
--- /dev/null
+++ b/include/usb/fastboot.h
@@ -0,0 +1,13 @@
+#ifndef _USB_FASTBOOT_H
+#define _USB_FASTBOOT_H
+
+#include <linux/types.h>
+#include <file-list.h>
+#include <usb/composite.h>
+
+struct f_fastboot_opts {
+ struct usb_function_instance func_inst;
+ struct file_list *files;
+};
+
+#endif /* _USB_FASTBOOT_H */