diff options
Diffstat (limited to 'multitech/recipes/multitech/mts-io/mt100eocg-pcie-dk/radio-reset-h5')
-rwxr-xr-x | multitech/recipes/multitech/mts-io/mt100eocg-pcie-dk/radio-reset-h5 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/multitech/recipes/multitech/mts-io/mt100eocg-pcie-dk/radio-reset-h5 b/multitech/recipes/multitech/mts-io/mt100eocg-pcie-dk/radio-reset-h5 new file mode 100755 index 0000000..02e43d8 --- /dev/null +++ b/multitech/recipes/multitech/mts-io/mt100eocg-pcie-dk/radio-reset-h5 @@ -0,0 +1,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 |