summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2016-10-10 14:36:36 -0500
committerJohn Klug <john.klug@multitech.com>2016-10-10 14:36:36 -0500
commit779d639645ac7acdac617ed40fcfff5859166631 (patch)
tree07b570bb34de60943a8f4bdf68c98ce064e34b3a
parent5a392bc4b2a4e93fba16e8a3a98b3144ffff3fe6 (diff)
downloadmts-io-1.3.6.tar.gz
mts-io-1.3.6.tar.bz2
mts-io-1.3.6.zip
Add ethernet reset to Conduit 0.01.3.6
-rw-r--r--io-module/mtcdt.c9
-rw-r--r--io-module/mts_io.c4
2 files changed, 11 insertions, 2 deletions
diff --git a/io-module/mtcdt.c b/io-module/mtcdt.c
index d8ea8b9..fcef791 100644
--- a/io-module/mtcdt.c
+++ b/io-module/mtcdt.c
@@ -30,6 +30,14 @@ static struct gpio_pin gpio_pins_mtcdt_0_0[] = {
.active_low = 1,
},
{
+ .name = "ETH_RESET",
+ .pin = {
+ .gpio = AT91_PIN_PC4,
+ .flags = GPIOF_OUT_INIT_HIGH,
+ .label = "eth-reset",
+ }
+ },
+ {
.name = "LS_LED", /* LED7 */
.pin = {
.gpio = AT91_PIN_PA14,
@@ -691,6 +699,7 @@ static struct attribute *mtcdt_platform_attributes[] = {
&dev_attr_led_b_gpio.attr,
&dev_attr_led_c_gpio.attr,
&dev_attr_led_d_gpio.attr,
+ &dev_attr_eth_reset.attr,
NULL,
};
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index cebaf8f..1cc2060 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -47,7 +47,7 @@
#include "mts_io.h"
-#define DRIVER_VERSION "v1.3.5"
+#define DRIVER_VERSION "v1.3.6"
#define DRIVER_AUTHOR "James Maki <jmaki@multitech.com>"
#define DRIVER_DESC "MTS-IO Controller"
#define DRIVER_NAME "mts-io"
@@ -801,7 +801,7 @@ static int mts_id_eeprom_load()
if(DEVICE_CAPA(id_eeprom.capa, CAPA_GNSS)) {
attr_blength += sizeof mtcdt_0_1_gnss_attributes;
memcpy(all_attrs + current_count,mtcdt_0_1_gnss_attributes,sizeof mtcdt_0_1_gnss_attributes);
- current_count += sizeof mtcdt_0_1_gnss_attributes / (sizeof (struct attribute *));
+ current_count += sizeof mtcdt_0_1_wifi_bt_attributes / (sizeof (struct attribute *));
}
all_attrs[current_count] = (struct attribute *)NULL;
mtcdt_0_1_platform_attribute_group.attrs = all_attrs;