summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--io-module/mtcdt.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/io-module/mtcdt.c b/io-module/mtcdt.c
index 4621d53..156bd27 100644
--- a/io-module/mtcdt.c
+++ b/io-module/mtcdt.c
@@ -494,25 +494,22 @@ static struct gpio_pin gpio_pins_mtcdt_0_1[] = {
.label = "ap2-interrupt2",
}
},
- /*
{
- .name = "WIFI_BT_LPWKUP",
+ .name = "WIFI_BT_ULPWKUP",
.pin = {
- .gpio = AT91_PIN_PA6,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "wifi-bt-lpwkup",
+ .gpio = AT91_PIN_PA0,
+ .flags = GPIOF_IN,
+ .label = "wifi-bt-ulpwkup",
}
},
{
- .name = "WIFI_BT_ULPWKUP",
+ .name = "WIFI_BT_LPWKUP",
.pin = {
- .gpio = AT91_PIN_PA0,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "wifi-bt-ulpwkup",
+ .gpio = AT91_PIN_PA6,
+ .flags = GPIOF_IN,
+ .label = "wifi-bt-lpwkup",
}
},
- */
- /*
{
.name = "WIFI_BT_INT",
.pin = {
@@ -521,7 +518,6 @@ static struct gpio_pin gpio_pins_mtcdt_0_1[] = {
.label = "wifi-bt-int",
}
},
- */
{
.name = "WIFI_BT_RESET",
.pin = {
@@ -590,6 +586,8 @@ static DEVICE_ATTR_MTS(dev_attr_wifi_bt_reset, "wifi-bt-reset",
mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
static DEVICE_ATTR_RO_MTS(dev_attr_wifi_bt_lpmode, "wifi-bt-lpmode",
mts_attr_show_gpio_pin);
+static DEVICE_ATTR_RO_MTS(dev_attr_wifi_bt_int, "wifi-bt-int",
+ mts_attr_show_gpio_pin);
static DEVICE_ATTR_MTS(dev_attr_gnss_reset, "gnss-reset",
mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
static DEVICE_ATTR_MTS(dev_attr_usbhub_reset, "usbhub-reset",
@@ -655,12 +653,11 @@ static struct attribute *mtcdt_0_1_platform_attributes[] = {
&dev_attr_led_c_gpio.attr,
&dev_attr_led_d_gpio.attr,
- /*
&dev_attr_wifi_bt_lpwkup.attr,
&dev_attr_wifi_bt_ulpwkup.attr,
- */
&dev_attr_wifi_bt_reset.attr,
&dev_attr_wifi_bt_lpmode.attr,
+ &dev_attr_wifi_bt_int,
&dev_attr_gnss_reset.attr,
&dev_attr_usbhub_reset.attr,
NULL,