From 6d67f5983695987e98f35328c5b2737f2664346c Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 29 May 2009 15:03:08 +0200 Subject: usb-gadget-mode: add support for all linux gadgets and make g_cdc the default for beagleboard --- recipes/usb-gadget-mode/files/beagleboard/usb-gadget.conf | 3 +++ recipes/usb-gadget-mode/files/usb-gadget | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 recipes/usb-gadget-mode/files/beagleboard/usb-gadget.conf (limited to 'recipes/usb-gadget-mode/files') 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" ;; -- cgit v1.2.3