summaryrefslogtreecommitdiff
path: root/multitech/recipes/multitech/mts-io/mt100eocg-pcie-dk/radio-reset-h5
blob: 02e43d8a849f64ffebde530325967745c96cbb2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# This script works around an H5 radio quirk by disabling USB and 
# waiting for the radio to power up before re-enabling it.  Note that
# this will disable all USB devices connected to the USB host controller
# until the reset is finished.  USB device port is not affected.

pin="gpo3"

rmmod ohci_hcd
# toggle onoff pin
mts-io-sysfs store $pin 1
usleep 200000
mts-io-sysfs store $pin 0
sleep 15
modprobe ohci_hcd