summaryrefslogtreecommitdiff
path: root/io-module/mts-io.c
diff options
context:
space:
mode:
authorGary Cole <gary.cole@connecteddev.com>2018-08-06 17:02:25 -0400
committerGary Cole <gary.cole@connecteddev.com>2018-08-06 17:02:25 -0400
commit00608c8b64d34dbfe864dfcec44b8a3fbff2db67 (patch)
tree4e079c024db44d128969d749a6d8ce4284c04616 /io-module/mts-io.c
parent12eb0abd4bb74af5a2f45485e1a6b53b1cd422bc (diff)
downloadmts-io-00608c8b64d34dbfe864dfcec44b8a3fbff2db67.tar.gz
mts-io-00608c8b64d34dbfe864dfcec44b8a3fbff2db67.tar.bz2
mts-io-00608c8b64d34dbfe864dfcec44b8a3fbff2db67.zip
added MTAC Pulse card support for Blue Pillar
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 31f69f9..180a7b0 100644
--- a/io-module/mts-io.c
+++ b/io-module/mts-io.c
@@ -607,6 +607,7 @@ static struct ap_info* port_info[NUM_AP];
#include "mtac_mfser.c"
#include "mtac_eth.c"
#include "mtac_lora.c"
+#include "mtac_pulse.c"
static bool load_port(int port) {
int port_index = port - 1;
@@ -643,6 +644,11 @@ static bool load_port(int port) {
log_error("failed to set up lora port info");
return false;
}
+ } else if (strstr(ap_eeprom[port_index].product_id, PRODUCT_ID_MTAC_PULSE)) {
+ if (! set_pulse_info(port_info[port_index])) {
+ log_error("failed to set up pulse 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]);