summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjklug <jklug@jklugUB14LTS>2016-07-27 18:42:28 -0500
committerjklug <jklug@jklugUB14LTS>2016-07-27 18:42:28 -0500
commit1ba5fc388e87cb2b338bd7b14691f2962a1d79b0 (patch)
tree0aa7dda1dd757f5530dee1e982e41a066b88556f
parent8915ccc77a6063cde89a9a839dcf605d4e1900ef (diff)
downloadmts-io-1ba5fc388e87cb2b338bd7b14691f2962a1d79b0.tar.gz
mts-io-1ba5fc388e87cb2b338bd7b14691f2962a1d79b0.tar.bz2
mts-io-1ba5fc388e87cb2b338bd7b14691f2962a1d79b0.zip
Add /sys/devices/platform/mts-io/wifi* to sysfs
-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,