diff options
author | John Klug <john.klug@multitech.com> | 2018-08-06 18:03:48 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2018-08-06 18:03:48 -0500 |
commit | 342ba736041efa33ccc5c76b67e7214c5cbcd6fd (patch) | |
tree | 4e079c024db44d128969d749a6d8ce4284c04616 /io-module/mts-io.c | |
parent | 12eb0abd4bb74af5a2f45485e1a6b53b1cd422bc (diff) | |
parent | 00608c8b64d34dbfe864dfcec44b8a3fbff2db67 (diff) | |
download | mts-io-342ba736041efa33ccc5c76b67e7214c5cbcd6fd.tar.gz mts-io-342ba736041efa33ccc5c76b67e7214c5cbcd6fd.tar.bz2 mts-io-342ba736041efa33ccc5c76b67e7214c5cbcd6fd.zip |
Merge branch 'mtac-pulse' into 'master'
added MTAC Pulse card support for Blue Pillar
See merge request !15
Diffstat (limited to 'io-module/mts-io.c')
-rw-r--r-- | io-module/mts-io.c | 6 |
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]); |