diff options
author | Ladislav Michl <ladis@linux-mips.org> | 2018-10-26 17:39:10 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-10-29 11:26:35 +0100 |
commit | 44add42d43300a330647704141c5a285358361db (patch) | |
tree | e5ae0bd91e190ae2d1ef55a5dc2c32b86401a13d /include | |
parent | 3e24dfe93d85e699c1510b795810382099167521 (diff) | |
download | barebox-44add42d43300a330647704141c5a285358361db.tar.gz barebox-44add42d43300a330647704141c5a285358361db.tar.xz |
usbgadget: autostart: add DFU support
Use global variable dfu_function to autostart DFU. As similar code
is used to start multifunction gadget using command, move common
code to common/usbgadget.c and consolidate it.
It turned out that '-s' option of usbgadget command does nothing,
so remove its help text and make it function as '-a'.
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb/gadget-multi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/usb/gadget-multi.h b/include/usb/gadget-multi.h index 81beddc7cf..030e604fe7 100644 --- a/include/usb/gadget-multi.h +++ b/include/usb/gadget-multi.h @@ -16,4 +16,8 @@ int usb_multi_register(struct f_multi_opts *opts); void usb_multi_unregister(void); void usb_multi_opts_release(struct f_multi_opts *opts); +int usbgadget_register(bool dfu, const char *dfu_opts, + bool fastboot, const char *fastboot_opts, + bool acm, bool export_bbu); + #endif /* __USB_GADGET_MULTI_H */ |