summaryrefslogtreecommitdiff
path: root/snowball
diff options
context:
space:
mode:
Diffstat (limited to 'snowball')
-rwxr-xr-xsnowball7
1 files changed, 7 insertions, 0 deletions
diff --git a/snowball b/snowball
index 5773934..648d19e 100755
--- a/snowball
+++ b/snowball
@@ -5,11 +5,18 @@
#
# (Limited) OTG HOST support
+USB_BTD=/sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/boot_time_device
start_musb() {
modprobe g_multi
+ if [ -f $USB_BTD ]; then
+ echo 1 > $USB_BTD
+ fi
}
stop_musb() {
modprobe -r g_multi
+ if [ -f $USB_BTD ]; then
+ echo 0 > $USB_BTD
+ fi
}
# Bluetooth