diff options
author | Koen Kooi <koen@openembedded.org> | 2009-05-29 15:03:08 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-05-29 15:03:08 +0200 |
commit | 6d67f5983695987e98f35328c5b2737f2664346c (patch) | |
tree | d1ff5c464632356356cbdf385131d7be70d6d986 /recipes/usb-gadget-mode/files | |
parent | 17677085dea0a9584cba1f2a1866c9cdfe4521ef (diff) |
usb-gadget-mode: add support for all linux gadgets and make g_cdc the default for beagleboard
Diffstat (limited to 'recipes/usb-gadget-mode/files')
-rw-r--r-- | recipes/usb-gadget-mode/files/beagleboard/usb-gadget.conf | 3 | ||||
-rwxr-xr-x | recipes/usb-gadget-mode/files/usb-gadget | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/recipes/usb-gadget-mode/files/beagleboard/usb-gadget.conf b/recipes/usb-gadget-mode/files/beagleboard/usb-gadget.conf new file mode 100644 index 0000000000..35ff0d4fa9 --- /dev/null +++ b/recipes/usb-gadget-mode/files/beagleboard/usb-gadget.conf @@ -0,0 +1,3 @@ +USB_MODE="composite" +MODULE_OPTIONS="" + diff --git a/recipes/usb-gadget-mode/files/usb-gadget b/recipes/usb-gadget-mode/files/usb-gadget index 6f957fd263..c9ff2f0485 100755 --- a/recipes/usb-gadget-mode/files/usb-gadget +++ b/recipes/usb-gadget-mode/files/usb-gadget @@ -10,6 +10,7 @@ # # 20070606 - v0.0.1 - Initial release # 20070630 - v0.0.2 - Add forgotten host mode +# 20090529 - add support for all gadgets in 2.6.29 (koen) CONF_FILE="/etc/default/usb-gadget" @@ -23,6 +24,11 @@ go() { case "$USB_MODE" in networking) setup_usb g_ether "$MODULE_OPTIONS" ;; + zero) setup_usb g_zero "$MODULE_OPTIONS" ;; + midi) setup_usb g_midi "$MODULE_OPTIONS" ;; + printer setup_usb g_printer "$MODULE_OPTIONS" ;; + gadgetfs) setup_usb gadgetfs "$MODULE_OPTIONS" ;; + composite) setup_usb g_cdc "$MODULE_OPTIONS" ;; storage) setup_usb g_file_storage "$MODULE_OPTIONS" ;; hostmode) unload_usb_gadgets setup_usb ohci_hcd "$MODULE_OPTIONS" ;; |