summaryrefslogtreecommitdiff
path: root/io-module/mts_io.c
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2018-05-18 19:31:00 -0500
committerJohn Klug <john.klug@multitech.com>2018-05-18 19:31:00 -0500
commitc2722d5ee922f52b53d6cee37d89c43ae43063c5 (patch)
tree84f49440bcc0cf52c88beb67dd0c6cbede60bd7c /io-module/mts_io.c
parent22ab73a75654edc33def4cf715791ead698e28bc (diff)
downloadmts-io-c2722d5ee922f52b53d6cee37d89c43ae43063c5.tar.gz
mts-io-c2722d5ee922f52b53d6cee37d89c43ae43063c5.tar.bz2
mts-io-c2722d5ee922f52b53d6cee37d89c43ae43063c5.zip
Zoll device code to be merged with HOTSPOT_1.0 branch
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r--io-module/mts_io.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index d360256..35146ea 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -47,7 +47,7 @@
#include "mts_io.h"
-#define DRIVER_VERSION "v2.0.4"
+#define DRIVER_VERSION "v2.0.5"
#define DRIVER_AUTHOR "James Maki <jmaki@multitech.com>"
#define DRIVER_DESC "MTS-IO Controller"
#define DRIVER_NAME "mts-io"
@@ -721,6 +721,7 @@ static int get_radio_model_from_product_id(void) {
#include "mtcdt.c"
#include "mtcap.c"
#include "mtr.c"
+#include "hs.c"
/* include capabilities sub-directory support */
#include "mts_capab.c"
@@ -950,6 +951,11 @@ mts_id_eeprom_load(void)
gpio_pins = gpio_pins_mtrv1_0_2;
mts_hw_version = MTRV1_0_2;
log_info("detected board %s", HW_VERSION_MTRV1_0_2);
+ } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTHS_0_0, strlen(HW_VERSION_MTHS_0_0)) == 0) {
+ attr_group = &mths_0_0_platform_attribute_group;
+ gpio_pins = gpio_pins_mths_0_0;
+ mts_hw_version = MTHS_0_0;
+ log_info("detected board %s", HW_VERSION_MTHS_0_0);
} else if (((tmp=HW_VERSION_MTCDT_0_1),strncmp(id_eeprom.hw_version, tmp, strlen(tmp)) == 0) ||
((tmp=HW_VERSION_MTCDTIP_0_0),strncmp(id_eeprom.hw_version, tmp, strlen(tmp)) == 0)) {
current_blength = attr_blength = sizeof mtcdt_0_1_platform_attributes;