diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-17 07:25:19 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-24 08:32:56 +0200 |
commit | 3d5080aae90dffa3e3ea702f2efef8c5f9aaf372 (patch) | |
tree | 0832defbf16b37a987642223dfd47ceb7a485eae /include/usb | |
parent | 0bd652f62a5406aed7fbb3e0349b8c787bde6953 (diff) | |
download | barebox-3d5080aae90dffa3e3ea702f2efef8c5f9aaf372.tar.gz barebox-3d5080aae90dffa3e3ea702f2efef8c5f9aaf372.tar.xz |
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')
-rw-r--r-- | include/usb/fastboot.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/usb/fastboot.h b/include/usb/fastboot.h new file mode 100644 index 0000000000..dab5a9a299 --- /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 */ |