diff options
author | John Klug <john.klug@multitech.com> | 2020-12-14 13:05:32 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2020-12-14 13:05:32 -0600 |
commit | aa67d0ede027f1515dff24c44cf4d6d75a98a7b2 (patch) | |
tree | 8c646a3134caffda2dba61694f2def043088059f /recipes-bsp/multitech/mts-io | |
parent | 139dcd8f7e0f5848a16e8174cc8cf00f72b547b6 (diff) | |
download | meta-multitech-aa67d0ede027f1515dff24c44cf4d6d75a98a7b2.tar.gz meta-multitech-aa67d0ede027f1515dff24c44cf4d6d75a98a7b2.tar.bz2 meta-multitech-aa67d0ede027f1515dff24c44cf4d6d75a98a7b2.zip |
MTCDT3 needs no symlink for spi
Diffstat (limited to 'recipes-bsp/multitech/mts-io')
-rwxr-xr-x | recipes-bsp/multitech/mts-io/mts-io.init | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.init b/recipes-bsp/multitech/mts-io/mts-io.init index 0753ef1..5c524de 100755 --- a/recipes-bsp/multitech/mts-io/mts-io.init +++ b/recipes-bsp/multitech/mts-io/mts-io.init @@ -205,6 +205,11 @@ read_card_info() { lora_hw=$(${SYSFS} show lora/hw-version 2> /dev/null) + if [[ $hw_name == MTCDT3 ]] ; then + # SYM Link and spidev module is not needed in MTCDT3. + return 0 + fi + if [ -d $port1 ] && [[ $(cat $port1/hw-version) = $lora_hw ]]; then modprobe spidev ln -sf /dev/spidev32766.2 /dev/spidev0.0 |