summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech/mts-io/mts-io.init
diff options
context:
space:
mode:
authorJeff Hatch <jhatch@multitech.com>2021-12-23 08:41:04 -0600
committerJeff Hatch <jhatch@multitech.com>2021-12-23 08:41:04 -0600
commit0e1269c9c5f91cc5c6edac0ec3bffe5d606b5b48 (patch)
treeb4e9faa8c6184b7c6d8d9d999593dce8392db798 /recipes-bsp/multitech/mts-io/mts-io.init
parentd22540a6ad2d89d8383dbe79448e003c5bd901ad (diff)
parentd7a9a9dd6c1c8531a6e5d2ae32dc865f078e90a5 (diff)
downloadmeta-multitech-0e1269c9c5f91cc5c6edac0ec3bffe5d606b5b48.tar.gz
meta-multitech-0e1269c9c5f91cc5c6edac0ec3bffe5d606b5b48.tar.bz2
meta-multitech-0e1269c9c5f91cc5c6edac0ec3bffe5d606b5b48.zip
Merge branch 'ap/MTX-4274' into 6
This merge brings in new hardware support for the mtrv1 and conduit pars shortage updates
Diffstat (limited to 'recipes-bsp/multitech/mts-io/mts-io.init')
-rwxr-xr-xrecipes-bsp/multitech/mts-io/mts-io.init14
1 files changed, 12 insertions, 2 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init
index 2dd5405..cd93fbb 100755
--- a/recipes-bsp/multitech/mts-io/mts-io.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.init
@@ -80,7 +80,10 @@ HWNAME=""
HWLVL=""
-RST[0]="${sysdir}/wifi-bt-reset"
+# WIFIBTRESET is used later, so it must match
+# the index of the RST variable for wifi-bt-reset.
+WIFIBTRESET=0
+RST[${WIFIBTRESET}]="${sysdir}/wifi-bt-reset"
RST[1]="${sysdir}/mtq-reset"
RST[2]="${sysdir}/ap1/reset"
RST[3]="${sysdir}/ap1/creset"
@@ -313,7 +316,7 @@ set_links() {
fi
# Default MTCDT-0.1
echo "u-blox" >"$GPSCONFIGTYPE"
- ln -sf /dev/ttyXRUSB2 /dev/gps0
+ # Link up GPS for MTCDT and MTCDTIP in udev
}
case $1 in
@@ -355,6 +358,13 @@ case $1 in
/usr/bin/logger -t "mts-io" -p daemon.info -s "Resetting system modules"
read_card_info
/bin/busybox usleep $USLPTIME
+
+ # MTCDT-0.2 has issues with resetting RS9113 twice.
+ # RS9113 is reset in /etc/init.d/rs9113.
+ # Remove for MTRV1 reset as well, as it is redundant.
+ if [[ $hw_name == MTCDT ]] || [[ $hw_name == MTRV1 ]] ; then
+ RST[${WIFIBTRESET}]="/dev/null"
+ fi
reset_array
# use radio-reset init script for radio-reset
mfser_init