summaryrefslogtreecommitdiff
path: root/recipes/usb-gadget-mode
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-05-29 15:03:08 +0200
committerKoen Kooi <koen@openembedded.org>2009-05-29 15:03:08 +0200
commit6d67f5983695987e98f35328c5b2737f2664346c (patch)
treed1ff5c464632356356cbdf385131d7be70d6d986 /recipes/usb-gadget-mode
parent17677085dea0a9584cba1f2a1866c9cdfe4521ef (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')
-rw-r--r--recipes/usb-gadget-mode/files/beagleboard/usb-gadget.conf3
-rwxr-xr-xrecipes/usb-gadget-mode/files/usb-gadget6
-rw-r--r--recipes/usb-gadget-mode/usb-gadget-mode.bb2
3 files changed, 10 insertions, 1 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" ;;
diff --git a/recipes/usb-gadget-mode/usb-gadget-mode.bb b/recipes/usb-gadget-mode/usb-gadget-mode.bb
index daf7cfbe37..cc00a887fa 100644
--- a/recipes/usb-gadget-mode/usb-gadget-mode.bb
+++ b/recipes/usb-gadget-mode/usb-gadget-mode.bb
@@ -9,7 +9,7 @@ DESCRIPTION = "Manage the default USB gadget mode"
SECTION = "console/network"
LICENSE = "GPL"
PV = "0.0.2"
-PR = "r1"
+PR = "r2"
SRC_URI = "\
file://usb-gadget.conf \