diff options
Diffstat (limited to 'io-module')
-rw-r--r-- | io-module/mtcdt.c | 9 | ||||
-rw-r--r-- | 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 @@ -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; |