summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech/mts-io
diff options
context:
space:
mode:
authorVyacheslav Pedash <vyacheslav.pedash@globallogic.com>2022-09-22 16:39:30 +0300
committerVyacheslav Pedash <vyacheslav.pedash@globallogic.com>2022-09-22 16:39:30 +0300
commitdd78918463163fabbb9e122708c3de1bd02c5ec6 (patch)
tree864ba4919349fc761c10ab1835397a9f3916c305 /recipes-bsp/multitech/mts-io
parente4f75034443be7f67fdd50469ab596a7b2b322a1 (diff)
downloadmeta-multitech-dd78918463163fabbb9e122708c3de1bd02c5ec6.tar.gz
meta-multitech-dd78918463163fabbb9e122708c3de1bd02c5ec6.tar.bz2
meta-multitech-dd78918463163fabbb9e122708c3de1bd02c5ec6.zip
MTX-4646 MTCDT3AC: Fix mts-io init script to properly handle new MTCDT3AC hardware version
Diffstat (limited to 'recipes-bsp/multitech/mts-io')
-rwxr-xr-xrecipes-bsp/multitech/mts-io/mts-io.init13
1 files changed, 3 insertions, 10 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init
index 98f3e4c..eee2635 100755
--- a/recipes-bsp/multitech/mts-io/mts-io.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.init
@@ -30,7 +30,6 @@ hw=""
hw_name=""
MTAC_MODULES=""
((HASAP=0))
-((HASBB=0))
sethwtype() {
# mts-io must be loaded before trying this
@@ -44,18 +43,12 @@ sethwtype() {
case $hw_name in
MTCDTIPHP)
;;
- MTCDT|MTCDTIP|MTCDT3)
+ MTCDT|MTCDTIP|MTCDT3|MTCDT3AC)
if [[ $hw =~ MTCDT3-LORA16-0.0 ]] ; then
return 0
fi
((HASAP = 1))
;;
- MTCDT3)
- if [[ $hw =~ MTCDT3-LORA16-0.0 ]] ; then
- return 0
- fi
- ((HASBB = 1))
- ;;
*)
;;
esac
@@ -208,7 +201,7 @@ read_card_info() {
lora_hw=$(${SYSFS} show lora/hw-version 2> /dev/null)
- if [[ $hw_name == MTCDT3 ]] ; then
+ if [[ $hw_name == MTCDT3 || $hw_name == MTCDT3AC ]] ; then
# spidev module is not needed in MTCDT3.
return 0
fi
@@ -290,7 +283,7 @@ set_links() {
echo "venus" >"$GPSCONFIGTYPE"
return
;;
- MTCDT3)
+ MTCDT3|MTCDT3AC)
cpuhw=$(mts-io-sysfs show cpu/hw-version)
case ${cpuhw} in
MTCPM-0.0)