diff options
author | John Klug <john.klug@multitech.com> | 2020-12-14 13:05:32 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2021-06-23 03:43:40 -0500 |
commit | 25e07a3b79381c071b0a6452a2e6178831a1acdf (patch) | |
tree | 2d1bb8b9cab37f8919b09667119010d93c0bd2b8 | |
parent | d640b1e63172833cc934a6aadda6e7bb5c45175f (diff) | |
download | meta-multitech-25e07a3b79381c071b0a6452a2e6178831a1acdf.tar.gz meta-multitech-25e07a3b79381c071b0a6452a2e6178831a1acdf.tar.bz2 meta-multitech-25e07a3b79381c071b0a6452a2e6178831a1acdf.zip |
MTCDT3 needs no symlink for spi
-rw-r--r-- | recipes-bsp/multitech/mts-io.inc | 2 | ||||
-rwxr-xr-x | recipes-bsp/multitech/mts-io/mts-io.init | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/recipes-bsp/multitech/mts-io.inc b/recipes-bsp/multitech/mts-io.inc index 39fef52..77bc4e9 100644 --- a/recipes-bsp/multitech/mts-io.inc +++ b/recipes-bsp/multitech/mts-io.inc @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://io-module/COPYING;md5=94d55d512a9ba36caa9b7df079bae19 file://io-tool/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ " do_fetch[depends] += "virtual/kernel:do_shared_workdir" -INC_PR = "r2" +INC_PR = "r3" SRCREV = "${PV}" PR = "${INC_PR}.0-${KERNEL_MODULE_PACKAGE_SUFFIX}" 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 |