diff options
author | John Klug <john.klug@multitech.com> | 2019-05-23 13:06:50 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-05-23 13:06:50 -0500 |
commit | 932269f9bf70f6c3d8c6d2edbfcea0e3c3a4bdc2 (patch) | |
tree | 2817ccdd0998fdc0ee394b41e5e753e50c8c0db7 /recipes-bsp/multitech | |
parent | a0421aea85f050b70e984b11377a9ab4fbceb878 (diff) | |
download | meta-multitech-932269f9bf70f6c3d8c6d2edbfcea0e3c3a4bdc2.tar.gz meta-multitech-932269f9bf70f6c3d8c6d2edbfcea0e3c3a4bdc2.tar.bz2 meta-multitech-932269f9bf70f6c3d8c6d2edbfcea0e3c3a4bdc2.zip |
GNSS reset fix to suppress GPS serial port to protect XR12V1414 from bad PID/VID
Diffstat (limited to 'recipes-bsp/multitech')
-rwxr-xr-x | recipes-bsp/multitech/mts-io/mts-io.init | 19 | ||||
-rw-r--r-- | recipes-bsp/multitech/mts-io_4.1.2.bb (renamed from recipes-bsp/multitech/mts-io_4.1.1.bb) | 0 |
2 files changed, 16 insertions, 3 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init index 329a28b..966d5ae 100755 --- a/recipes-bsp/multitech/mts-io/mts-io.init +++ b/recipes-bsp/multitech/mts-io/mts-io.init @@ -93,9 +93,11 @@ RST[5]="${sysdir}/ap2/creset" RST[6]="${sysdir}/secure-reset" RST[7]="${sysdir}/eth-reset" RST[8]="${sysdir}/sm1-reset" -if ((GPSGNSSRESET)) ; then - RST[9]="${sysdir}/gnss-reset" -fi + +# GPSGNSSRESET is now set low during boot and is special cased. +#if ((GPSGNSSRESET)) ; then +# RST[9]="${sysdir}/gnss-reset" +#fi WPIN[0]="${sysdir}/ap1/cdone" WPIN[1]="${sysdir}/ap2/cdone" @@ -299,8 +301,19 @@ case $1 in set_gpslink # Set GPS symlink. /usr/bin/logger -t "mts-io" -p daemon.info -s "Resetting system modules" read_card_info + has_gnss_reset=0 + # On boot, gnss-reset will be low + if [[ -f ${sysdir}/gnss-reset ]] ; then + if (($(mts-io-sysfs show gnss-reset) == 1)) ; then + mts-io-sysfs store gnss-reset 0 + fi + has_gnss_reset=1 + fi /bin/busybox usleep $USLPTIME reset_array + if ((has_gnss_reset)) ; then + mts-io-sysfs store gnss-reset 1 + fi # use radio-reset init script for radio-reset mfser_init diff --git a/recipes-bsp/multitech/mts-io_4.1.1.bb b/recipes-bsp/multitech/mts-io_4.1.2.bb index 92937cd..92937cd 100644 --- a/recipes-bsp/multitech/mts-io_4.1.1.bb +++ b/recipes-bsp/multitech/mts-io_4.1.2.bb |