diff options
author | John Klug <john.klug@multitech.com> | 2018-05-11 09:14:00 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2018-05-11 09:14:00 -0500 |
commit | 82c9e9423edbe17a768202a10f4aab0fffdd3849 (patch) | |
tree | 86addf780ddc127dc9e4e896c2b587cbd761d42e /io-module | |
parent | 472fcfb521edee5ae0da430edd82a54689e4a6d5 (diff) | |
download | mts-io-82c9e9423edbe17a768202a10f4aab0fffdd3849.tar.gz mts-io-82c9e9423edbe17a768202a10f4aab0fffdd3849.tar.bz2 mts-io-82c9e9423edbe17a768202a10f4aab0fffdd3849.zip |
Fix MTR to match MTCDT, MTCAP
Diffstat (limited to 'io-module')
-rw-r--r-- | io-module/mtr.c | 22 | ||||
-rw-r--r-- | io-module/mts_io.c | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/io-module/mtr.c b/io-module/mtr.c index 15c295f..fd50e78 100644 --- a/io-module/mtr.c +++ b/io-module/mtr.c @@ -1,10 +1,10 @@ static struct gpio_pin gpio_pins_mtr_0_0[] = { { - .name = "ETH_EN", + .name = "ETH_RESET", .pin = { .gpio = AT91_PIN_PC6, .flags = GPIOF_OUT_INIT_HIGH, - .label = "eth-enabled", + .label = "eth-reset", }, .active_low = 0, }, @@ -215,11 +215,11 @@ static struct gpio_pin gpio_pins_mtr_0_0[] = { static struct gpio_pin gpio_pins_mtr_0_1[] = { { - .name = "ETH_EN", + .name = "ETH_RESET", .pin = { .gpio = AT91_PIN_PC6, .flags = GPIOF_OUT_INIT_HIGH, - .label = "eth-enabled", + .label = "eth-reset", }, .active_low = 0, }, @@ -430,11 +430,11 @@ static struct gpio_pin gpio_pins_mtr_0_1[] = { static struct gpio_pin gpio_pins_mtrv1_0_0[] = { { - .name = "ETH_EN", + .name = "ETH_RESET", .pin = { .gpio = AT91_PIN_PC6, .flags = GPIOF_OUT_INIT_HIGH | GPIOF_OPEN_DRAIN, /* without GPIOF_OPEN_DRAIN causes issues with the Micrel KSZ8091RNBCA (RMII) PHY */ - .label = "eth-enabled", + .label = "eth-reset", }, .active_low = 0, }, @@ -646,11 +646,11 @@ static struct gpio_pin gpio_pins_mtrv1_0_0[] = { static struct gpio_pin gpio_pins_mtrv1_0_1[] = { { - .name = "ETH_EN", + .name = "ETH_RESET", .pin = { .gpio = AT91_PIN_PC6, .flags = GPIOF_OUT_INIT_HIGH | GPIOF_OPEN_DRAIN, /* without GPIOF_OPEN_DRAIN causes issues with the Micrel KSZ8091RNBCA (RMII) PHY */ - .label = "eth-enabled", + .label = "eth-reset", }, .active_low = 0, }, @@ -1137,7 +1137,7 @@ static DEVICE_ATTR_MTS(dev_attr_radio_power_mtr, "radio-power", static DEVICE_ATTR_MTS(dev_attr_radio_reset_mtr, "radio-reset", mts_attr_show_gpio_pin, mts_attr_store_radio_reset_mtr); -static DEVICE_ATTR_MTS(dev_attr_eth_enabled_mtr, "eth-enabled", +static DEVICE_ATTR_MTS(dev_attr_eth_reset_mtr, "eth-reset", mts_attr_show_gpio_pin, mts_attr_store_gpio_pin); static DEVICE_ATTR_MTS(dev_attr_bt_enabled_mtr, "bt-enabled", @@ -1216,7 +1216,7 @@ static struct attribute *mtr_platform_attributes[] = { &dev_attr_extserial_dsr_gpio_mtr.attr, &dev_attr_extserial_dcd_gpio_mtr.attr, - &dev_attr_eth_enabled_mtr.attr, + &dev_attr_eth_reset_mtr.attr, &dev_attr_bt_enabled_mtr.attr, &dev_attr_wlan_enabled_mtr.attr, @@ -1276,7 +1276,7 @@ static struct attribute *mtrv1_0_1_platform_attributes[] = { &dev_attr_extserial_dsr_gpio_mtr.attr, &dev_attr_extserial_dcd_gpio_mtr.attr, - &dev_attr_eth_enabled_mtr.attr, + &dev_attr_eth_reset_mtr.attr, &dev_attr_wifi_bt_lpwkup_mtr.attr, &dev_attr_wifi_bt_ulpwkup_mtr.attr, &dev_attr_wifi_bt_reset_mtr.attr, diff --git a/io-module/mts_io.c b/io-module/mts_io.c index 1f12b86..3310208 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.1" +#define DRIVER_VERSION "v2.0.3" #define DRIVER_AUTHOR "James Maki <jmaki@multitech.com>" #define DRIVER_DESC "MTS-IO Controller" #define DRIVER_NAME "mts-io" |