summaryrefslogtreecommitdiff
path: root/io-module/machine
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2021-11-22 15:31:24 -0600
committerJohn Klug <john.klug@multitech.com>2021-11-22 15:42:49 -0600
commit7ab9527d773bbbd5a0dd467e9731d39df523ee58 (patch)
treea9e636b8ff57fb586db9b7de25c2602ae9d972ef /io-module/machine
parentc4d11d25f6f64a5178121b1f458d5ce6743abe2b (diff)
downloadmts-io-7ab9527d773bbbd5a0dd467e9731d39df523ee58.tar.gz
mts-io-7ab9527d773bbbd5a0dd467e9731d39df523ee58.tar.bz2
mts-io-7ab9527d773bbbd5a0dd467e9731d39df523ee58.zip
Remove secure reset (conflict in MTCDT-0.2), fix unsupported sleep/wakeup signals
Diffstat (limited to 'io-module/machine')
-rw-r--r--io-module/machine/mtcdt.c34
1 files changed, 9 insertions, 25 deletions
diff --git a/io-module/machine/mtcdt.c b/io-module/machine/mtcdt.c
index f8b5f0b..5ee77cb 100644
--- a/io-module/machine/mtcdt.c
+++ b/io-module/machine/mtcdt.c
@@ -265,7 +265,7 @@ static struct gpio_pin gpio_pins_mtcdt_0_1[] = {
.name = "WIFI_BT_ULPWKUP",
.pin = {
.gpio = AT91_PIN_PA0,
- .flags = GPIOF_IN,
+ .flags = GPIOF_OUT_INIT_LOW,
.label = "wifi-bt-ulpwkup",
},
.capability = CAPA_WIFI,
@@ -274,7 +274,7 @@ static struct gpio_pin gpio_pins_mtcdt_0_1[] = {
.name = "WIFI_BT_LPWKUP",
.pin = {
.gpio = AT91_PIN_PA6,
- .flags = GPIOF_IN,
+ .flags = GPIOF_OUT_INIT_HIGH,
.label = "wifi-bt-lpwkup",
},
.capability = CAPA_WIFI,
@@ -292,7 +292,7 @@ static struct gpio_pin gpio_pins_mtcdt_0_1[] = {
.name = "WIFI_BT_RESET",
.pin = {
.gpio = AT91_PIN_PD14,
- .flags = GPIOF_OUT_INIT_HIGH,
+ .flags = GPIOF_OUT_INIT_LOW,
.label = "wifi-bt-reset",
},
.capability = CAPA_WIFI,
@@ -307,14 +307,6 @@ static struct gpio_pin gpio_pins_mtcdt_0_1[] = {
.capability = CAPA_GPS,
},
{
- .name = "SECURE_RESET",
- .pin = {
- .gpio = AT91_PIN_PD16,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "secure-reset",
- }
- },
- {
.name = "MTQ_RESET",
.pin = {
.gpio = AT91_PIN_PD17,
@@ -326,7 +318,7 @@ static struct gpio_pin gpio_pins_mtcdt_0_1[] = {
.name = "USBHUB_RESET",
.pin = {
.gpio = AT91_PIN_PD18,
- .flags = GPIOF_OUT_INIT_HIGH,
+ .flags = GPIOF_OUT_INIT_LOW,
.label = "usbhub-reset",
}
},
@@ -334,7 +326,7 @@ static struct gpio_pin gpio_pins_mtcdt_0_1[] = {
.name = "GNSS_INT",
.pin = {
.gpio = AT91_PIN_PD19,
- .flags = GPIOF_OUT_INIT_HIGH,
+ .flags = GPIOF_OUT_INIT_LOW,
.label = "gnss-int",
},
.capability = CAPA_GPS,
@@ -492,7 +484,7 @@ static struct gpio_pin gpio_pins_mtcdt_0_2[] = {
.name = "WIFI_BT_ULPWKUP",
.pin = {
.gpio = AT91_PIN_PA0,
- .flags = GPIOF_IN,
+ .flags = GPIOF_OUT_INIT_LOW,
.label = "wifi-bt-ulpwkup",
},
.capability = CAPA_WIFI,
@@ -501,7 +493,7 @@ static struct gpio_pin gpio_pins_mtcdt_0_2[] = {
.name = "WIFI_BT_LPWKUP",
.pin = {
.gpio = PCA9557_0_IO1,
- .flags = GPIOF_IN,
+ .flags = GPIOF_OUT_INIT_HIGH,
.label = "wifi-bt-lpwkup",
},
.capability = CAPA_WIFI,
@@ -519,7 +511,7 @@ static struct gpio_pin gpio_pins_mtcdt_0_2[] = {
.name = "WIFI_BT_RESET",
.pin = {
.gpio = AT91_PIN_PD14,
- .flags = GPIOF_OUT_INIT_HIGH,
+ .flags = GPIOF_OUT_INIT_LOW,
.label = "wifi-bt-reset",
},
.capability = CAPA_WIFI,
@@ -534,14 +526,6 @@ static struct gpio_pin gpio_pins_mtcdt_0_2[] = {
.capability = CAPA_GPS,
},
{
- .name = "SECURE_RESET",
- .pin = {
- .gpio = AT91_PIN_PD16,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "secure-reset",
- }
- },
- {
.name = "MTQ_RESET",
.pin = {
.gpio = AT91_PIN_PD17,
@@ -553,7 +537,7 @@ static struct gpio_pin gpio_pins_mtcdt_0_2[] = {
.name = "USBHUB_RESET",
.pin = {
.gpio = AT91_PIN_PD18,
- .flags = GPIOF_OUT_INIT_HIGH,
+ .flags = GPIOF_OUT_INIT_LOW,
.label = "usbhub-reset",
}
},