summaryrefslogtreecommitdiff
path: root/io-module/mtcap.c
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2018-04-02 18:21:34 -0500
committerJohn Klug <john.klug@multitech.com>2018-04-02 18:21:34 -0500
commitbf97eddfe29544407203edd9d46466e9e3601839 (patch)
tree1e2cb2edae44046ba9ce38019ee56b101d9e51aa /io-module/mtcap.c
parentf133877e95a786f511a074c820e169a595eec10b (diff)
downloadmts-io-bf97eddfe29544407203edd9d46466e9e3601839.tar.gz
mts-io-bf97eddfe29544407203edd9d46466e9e3601839.tar.bz2
mts-io-bf97eddfe29544407203edd9d46466e9e3601839.zip
Add support for MTCDTIPHP hardware version
Diffstat (limited to 'io-module/mtcap.c')
-rw-r--r--io-module/mtcap.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/io-module/mtcap.c b/io-module/mtcap.c
index 804b364..b28e8eb 100644
--- a/io-module/mtcap.c
+++ b/io-module/mtcap.c
@@ -505,3 +505,16 @@ static struct attribute *mtcap_0_0_lora_attributes[] = {
static struct attribute_group mtcap_0_0_lora_attribute_group = {
.attrs = mtcap_0_0_lora_attributes
};
+
+// Reset for LoRa firmware is done using the I2C bus
+// on the MTCDTIPHP LoRa board.
+static struct attribute *mtcdtiphp_0_0_lora_attributes[] = {
+ &dev_attr_lora_eui_mtcap.attr,
+ &dev_attr_lora_product_id_mtcap.attr,
+ &dev_attr_lora_hw_version_mtcap.attr,
+ NULL,
+};
+
+static struct attribute_group mtcdtiphp_0_0_lora_attribute_group = {
+ .attrs = mtcdtiphp_0_0_lora_attributes
+};