From 779d639645ac7acdac617ed40fcfff5859166631 Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 10 Oct 2016 14:36:36 -0500 Subject: Add ethernet reset to Conduit 0.0 --- io-module/mtcdt.c | 9 +++++++++ io-module/mts_io.c | 4 ++-- 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 @@ -29,6 +29,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 = { @@ -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 " #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; -- cgit v1.2.3