diff options
author | Harsh Sharma <harsh.sharma@multitech.com> | 2021-10-14 15:27:23 -0500 |
---|---|---|
committer | Harsh Sharma <harsh.sharma@multitech.com> | 2021-10-14 15:27:23 -0500 |
commit | d390864f59232db90b80e5e65705c03687db2f1a (patch) | |
tree | 86a1a80e6c2587f9bcc448413c0b9150ef610a40 /recipes-bsp/multitech/mts-io/mts-io.init | |
parent | cba0437d85be754c0f06d4ad92628e0ae6403eba (diff) | |
download | meta-multitech-d390864f59232db90b80e5e65705c03687db2f1a.tar.gz meta-multitech-d390864f59232db90b80e5e65705c03687db2f1a.tar.bz2 meta-multitech-d390864f59232db90b80e5e65705c03687db2f1a.zip |
Added support for mtac-003
Diffstat (limited to 'recipes-bsp/multitech/mts-io/mts-io.init')
-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() { |