summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech/mts-io
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2021-10-29 12:23:13 -0500
committerJason Reiss <jreiss@multitech.com>2021-10-29 12:23:13 -0500
commit87760c2314a16675a263f2199d88b94e11771784 (patch)
tree86a1a80e6c2587f9bcc448413c0b9150ef610a40 /recipes-bsp/multitech/mts-io
parent5ec3c59dd16c42c4bade24ee75773a8764fcb01e (diff)
downloadmeta-multitech-87760c2314a16675a263f2199d88b94e11771784.tar.gz
meta-multitech-87760c2314a16675a263f2199d88b94e11771784.tar.bz2
meta-multitech-87760c2314a16675a263f2199d88b94e11771784.zip
Revert "Revert "Added support for mtac-003""
This reverts commit 5ec3c59dd16c42c4bade24ee75773a8764fcb01e.
Diffstat (limited to 'recipes-bsp/multitech/mts-io')
-rwxr-xr-xrecipes-bsp/multitech/mts-io/mts-io.init11
1 files changed, 3 insertions, 8 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init
index ed0475e..a75ceb9 100755
--- a/recipes-bsp/multitech/mts-io/mts-io.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.init
@@ -210,18 +210,13 @@ read_card_info() {
return 0
fi
- if [ -d $port1 ] && [[ $(cat $port1/hw-version) = $lora_hw ]]; then
- modprobe spidev
- ln -sf /dev/spidev32766.2 /dev/spidev0.0
- elif [ -d $port2 ] && [[ $(cat $port2/hw-version) = $lora_hw ]]; then
- modprobe spidev
- ln -sf /dev/spidev32765.2 /dev/spidev0.0
- elif [[ ${hw_name} == MTCAP ]]; then
+
+ if [[ ${hw_name} == MTCAP ]] || [[ ${hw_name} == MTCDT ]]; then
modprobe spidev
elif [[ ${hw_name} == MTCDTIPHP ]]; then
modprobe spidev
ln -sf /dev/spidev32766.2 /dev/spidev0.0
- fi
+ fi
}
mfser_init() {