diff options
author | Jason Reiss <jreiss@multitech.com> | 2021-10-29 12:23:13 -0500 |
---|---|---|
committer | Jason Reiss <jreiss@multitech.com> | 2021-10-29 12:23:13 -0500 |
commit | 87760c2314a16675a263f2199d88b94e11771784 (patch) | |
tree | 86a1a80e6c2587f9bcc448413c0b9150ef610a40 /recipes-bsp/multitech/mts-io | |
parent | 5ec3c59dd16c42c4bade24ee75773a8764fcb01e (diff) | |
download | meta-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-x | recipes-bsp/multitech/mts-io/mts-io.init | 11 |
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() { |