summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-10-17 11:11:02 -0500
committerJohn Klug <john.klug@multitech.com>2019-10-17 11:11:02 -0500
commit0fc3e8fceb3adc4210c3c438b7bd177f0fa98284 (patch)
tree9f3e2f63ab95a852d2ac353586b1c4aa5c7fa94c /src
parenta657a85786efc70f8225010102014031b379afc8 (diff)
downloadmts-id-eeprom-0fc3e8fceb3adc4210c3c438b7bd177f0fa98284.tar.gz
mts-id-eeprom-0fc3e8fceb3adc4210c3c438b7bd177f0fa98284.tar.bz2
mts-id-eeprom-0fc3e8fceb3adc4210c3c438b7bd177f0fa98284.zip
Add the MTCDT3 LoRa FPGA code0.4.2
Diffstat (limited to 'src')
-rw-r--r--src/mts-fpga-loader.sh3
-rw-r--r--src/mts_fpga_reg.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mts-fpga-loader.sh b/src/mts-fpga-loader.sh
index 027ff09..1688f2c 100644
--- a/src/mts-fpga-loader.sh
+++ b/src/mts-fpga-loader.sh
@@ -1,12 +1,13 @@
#!/bin/bash
lora_1_5_h_hw="-LORA-1.5\$"
+lora_1_5_lga_hw="MTCDT3"
lora_2_1_hw="-LORA-2.1\$"
L15=/sbin/mts-fpga-loader-1_5
L21=/sbin/sem-fpga-loader
lora_hw=$(mts-io-sysfs show lora/hw-version 2> /dev/null)
-if [[ $lora_hw =~ ${lora_1_5_h_hw} ]]; then
+if [[ $lora_hw =~ ${lora_1_5_h_hw}|^${lora_1_5_lga_hw}* ]]; then
if [[ -x ${L15} ]] ; then
${L15} "$@"
else
diff --git a/src/mts_fpga_reg.c b/src/mts_fpga_reg.c
index 473868c..0c3a922 100644
--- a/src/mts_fpga_reg.c
+++ b/src/mts_fpga_reg.c
@@ -36,7 +36,7 @@
/* --- PRIVATE CONSTANTS ---------------------------------------------------- */
const char *valid_hw[] = {MTCDT, MTCAP};
-static const uint8_t fpga_version[] = {28, 31, 33};
+static const uint8_t fpga_version[] = {28, 31, 33, 35, 37};
static const struct mtac_reg_s loregs[3] = {
{-1, 0, 0, 0, 2, 0, 0}, /* PAGE_REG */
{-1, 0, 7, 0, 1, 0, 0}, /* SOFT_RESET */