summaryrefslogtreecommitdiff
path: root/io-module
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2013-03-01 17:11:20 -0600
committerJesse Gilles <jgilles@multitech.com>2013-03-01 17:11:20 -0600
commit3b847c3eeb275330d98283db5362da62765dea3c (patch)
treeaa9fc2d456d6fb805aa392fccfcf9527c59a1ce4 /io-module
parent4c3ee8ef4c442a4946e726fc0b221874f20da263 (diff)
downloadmts-io-3b847c3eeb275330d98283db5362da62765dea3c.tar.gz
mts-io-3b847c3eeb275330d98283db5362da62765dea3c.tar.bz2
mts-io-3b847c3eeb275330d98283db5362da62765dea3c.zip
add led-a to led-f for MTOCGD3
Diffstat (limited to 'io-module')
-rw-r--r--io-module/mts_io.c76
1 files changed, 71 insertions, 5 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index 6aacf74..ae2764d 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -442,6 +442,7 @@ static struct gpio_pin gpio_pins_mtr2_0_0[] = {
.direction = GPIO_DIR_OUTPUT,
.output_value = 1,
.use_pullup = 0,
+ .active_low = 1,
},
{
.name = "LED7",
@@ -453,6 +454,15 @@ static struct gpio_pin gpio_pins_mtr2_0_0[] = {
.active_low = 1,
},
{
+ .name = "LED7",
+ .attr_name = "led-c",
+ .pin = AT91_PIN_PA25,
+ .direction = GPIO_DIR_OUTPUT,
+ .output_value = 1,
+ .use_pullup = 0,
+ .active_low = 1,
+ },
+ {
.name = "LED10",
.attr_name = "led-sig1",
.pin = AT91_PIN_PA26,
@@ -462,6 +472,15 @@ static struct gpio_pin gpio_pins_mtr2_0_0[] = {
.active_low = 1,
},
{
+ .name = "LED10",
+ .attr_name = "led-d",
+ .pin = AT91_PIN_PA26,
+ .direction = GPIO_DIR_OUTPUT,
+ .output_value = 1,
+ .use_pullup = 0,
+ .active_low = 1,
+ },
+ {
.name = "LED11",
.attr_name = "led-sig2",
.pin = AT91_PIN_PA27,
@@ -471,6 +490,15 @@ static struct gpio_pin gpio_pins_mtr2_0_0[] = {
.active_low = 1,
},
{
+ .name = "LED11",
+ .attr_name = "led-e",
+ .pin = AT91_PIN_PA27,
+ .direction = GPIO_DIR_OUTPUT,
+ .output_value = 1,
+ .use_pullup = 0,
+ .active_low = 1,
+ },
+ {
.name = "LED12",
.attr_name = "led-sig3",
.pin = AT91_PIN_PA28,
@@ -480,6 +508,15 @@ static struct gpio_pin gpio_pins_mtr2_0_0[] = {
.active_low = 1,
},
{
+ .name = "LED12",
+ .attr_name = "led-f",
+ .pin = AT91_PIN_PA28,
+ .direction = GPIO_DIR_OUTPUT,
+ .output_value = 1,
+ .use_pullup = 0,
+ .active_low = 1,
+ },
+ {
.name = "LED13",
.attr_name = "led-wifi",
.pin = AT91_PIN_PA29,
@@ -489,6 +526,15 @@ static struct gpio_pin gpio_pins_mtr2_0_0[] = {
.active_low = 1,
},
{
+ .name = "LED13",
+ .attr_name = "led-b",
+ .pin = AT91_PIN_PA29,
+ .direction = GPIO_DIR_OUTPUT,
+ .output_value = 1,
+ .use_pullup = 0,
+ .active_low = 1,
+ },
+ {
.name = "UART3_DTR",
.attr_name = "extserial-dtr",
.pin = AT91_PIN_PC12,
@@ -1548,6 +1594,8 @@ static ssize_t mts_attr_store_led_status(struct device *dev,
static DEVICE_ATTR_MTS(dev_attr_led_status, "led-status",
mts_attr_show_led_status, mts_attr_store_led_status);
+static DEVICE_ATTR_MTS(dev_attr_led_a_gpio, "led-a",
+ mts_attr_show_led_status, mts_attr_store_led_status);
#if LED_STATUS_CONTROLLABLE_MTCDP
static DEVICE_ATTR_MTS(dev_attr_led_sdk_a, "led-sdk-a",
@@ -1562,6 +1610,16 @@ static DEVICE_ATTR_RO_MTS(dev_attr_led_ls, "led-ls",
mts_attr_show_gpio_pin);
#endif
+static DEVICE_ATTR_MTS(dev_attr_led_wifi_gpio, "led-wifi",
+ mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
+static DEVICE_ATTR_MTS(dev_attr_led_b_gpio, "led-b",
+ mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
+
+static DEVICE_ATTR_MTS(dev_attr_led_cd_gpio, "led-cd",
+ mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
+static DEVICE_ATTR_MTS(dev_attr_led_c_gpio, "led-c",
+ mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
+
static DEVICE_ATTR_MTS(dev_attr_led_sig1_gpio, "led-sig1",
mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
static DEVICE_ATTR_MTS(dev_attr_led_sig2_gpio, "led-sig2",
@@ -1569,10 +1627,11 @@ static DEVICE_ATTR_MTS(dev_attr_led_sig2_gpio, "led-sig2",
static DEVICE_ATTR_MTS(dev_attr_led_sig3_gpio, "led-sig3",
mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
-static DEVICE_ATTR_MTS(dev_attr_led_cd_gpio, "led-cd",
+static DEVICE_ATTR_MTS(dev_attr_led_d_gpio, "led-d",
mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
-
-static DEVICE_ATTR_MTS(dev_attr_led_wifi_gpio, "led-wifi",
+static DEVICE_ATTR_MTS(dev_attr_led_e_gpio, "led-e",
+ mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
+static DEVICE_ATTR_MTS(dev_attr_led_f_gpio, "led-f",
mts_attr_show_gpio_pin, mts_attr_store_gpio_pin);
static DEVICE_ATTR_RO_MTS(dev_attr_reset, "reset", mts_attr_show_gpio_pin);
@@ -1903,11 +1962,18 @@ static struct attribute *mtr2_platform_attributes[] = {
&dev_attr_rs4xx_term_res.attr,
&dev_attr_led_status.attr,
+ &dev_attr_led_wifi_gpio.attr,
+ &dev_attr_led_cd_gpio.attr,
&dev_attr_led_sig1_gpio.attr,
&dev_attr_led_sig2_gpio.attr,
&dev_attr_led_sig3_gpio.attr,
- &dev_attr_led_cd_gpio.attr,
- &dev_attr_led_wifi_gpio.attr,
+
+ &dev_attr_led_a_gpio.attr,
+ &dev_attr_led_b_gpio.attr,
+ &dev_attr_led_c_gpio.attr,
+ &dev_attr_led_d_gpio.attr,
+ &dev_attr_led_e_gpio.attr,
+ &dev_attr_led_f_gpio.attr,
&dev_attr_board_temperature.attr,