summaryrefslogtreecommitdiff
path: root/io-module/mts_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r--io-module/mts_io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index b3c3a10..3b2e130 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -98,6 +98,7 @@ static DEFINE_MUTEX(mts_io_mutex);
#include "mtac_gpiob.c"
#include "mtac_mfser.c"
#include "mtac_eth.c"
+#include "mtac_lora.c"
/* reset button handling */
#define RESET_CHECK_PER_SEC 8
@@ -406,6 +407,11 @@ static bool load_port(int port) {
log_error("failed to set up eth port info");
return false;
}
+ } else if (strstr(ap_eeprom[port_index].product_id, PRODUCT_ID_MTAC_LORA)) {
+ if (! set_lora_info(port_info[port_index])) {
+ log_error("failed to set up lora port info");
+ return false;
+ }
} else {
log_error("unknown accessory card [%s] in port %d", ap_eeprom[port_index].product_id, port);
kfree(port_info[port_index]);