summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2007-06-30 18:20:33 +0000
committerMatthias Hentges <oe@hentges.net>2007-06-30 18:20:33 +0000
commit4e2594811904a36794d8e51ea7c07f2566797079 (patch)
tree51aa0aa0f5beb7b27bb12c52607ac6d57b8e1e8d /packages
parentee47c478e20cb18c389ae5b5eca09c103e1f051a (diff)
usb-gadget-mode: Add support for host-mode
Diffstat (limited to 'packages')
-rw-r--r--packages/usb-gadget-mode/files/spitz/.mtn2git_empty0
-rw-r--r--packages/usb-gadget-mode/files/spitz/usb-gadget.conf3
-rwxr-xr-xpackages/usb-gadget-mode/files/usb-gadget3
-rw-r--r--packages/usb-gadget-mode/usb-gadget-mode.bb4
4 files changed, 8 insertions, 2 deletions
diff --git a/packages/usb-gadget-mode/files/spitz/.mtn2git_empty b/packages/usb-gadget-mode/files/spitz/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/usb-gadget-mode/files/spitz/.mtn2git_empty
diff --git a/packages/usb-gadget-mode/files/spitz/usb-gadget.conf b/packages/usb-gadget-mode/files/spitz/usb-gadget.conf
new file mode 100644
index 0000000000..717687d4c3
--- /dev/null
+++ b/packages/usb-gadget-mode/files/spitz/usb-gadget.conf
@@ -0,0 +1,3 @@
+USB_MODE="networking"
+MODULE_OPTIONS=""
+
diff --git a/packages/usb-gadget-mode/files/usb-gadget b/packages/usb-gadget-mode/files/usb-gadget
index 4fdc429f5b..6f957fd263 100755
--- a/packages/usb-gadget-mode/files/usb-gadget
+++ b/packages/usb-gadget-mode/files/usb-gadget
@@ -9,6 +9,7 @@
#################################################################################
#
# 20070606 - v0.0.1 - Initial release
+# 20070630 - v0.0.2 - Add forgotten host mode
CONF_FILE="/etc/default/usb-gadget"
@@ -23,6 +24,8 @@ go() {
case "$USB_MODE" in
networking) setup_usb g_ether "$MODULE_OPTIONS" ;;
storage) setup_usb g_file_storage "$MODULE_OPTIONS" ;;
+ hostmode) unload_usb_gadgets
+ setup_usb ohci_hcd "$MODULE_OPTIONS" ;;
none) unload_usb_gadgets ;;
esac
diff --git a/packages/usb-gadget-mode/usb-gadget-mode.bb b/packages/usb-gadget-mode/usb-gadget-mode.bb
index ae1f08b5ea..d1fab638f2 100644
--- a/packages/usb-gadget-mode/usb-gadget-mode.bb
+++ b/packages/usb-gadget-mode/usb-gadget-mode.bb
@@ -13,8 +13,8 @@ LICENSE = "GPL"
######################################################################################
-PV = "0.0.1"
-PR = "r3"
+PV = "0.0.2"
+PR = "r0"
######################################################################################