summaryrefslogtreecommitdiff
path: root/io-module/mts_io.c
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2013-05-01 14:29:13 -0500
committerMike Fiore <mfiore@multitech.com>2013-05-01 14:29:13 -0500
commitd5beeadc07864a4bdc970ed76bd4693529039fcd (patch)
treeb69d85a2cb4b59991132511028efee0a38791c4c /io-module/mts_io.c
parentf8421437524cbba156e63c2fa04d1b641d963d48 (diff)
downloadmts-io-d5beeadc07864a4bdc970ed76bd4693529039fcd.tar.gz
mts-io-d5beeadc07864a4bdc970ed76bd4693529039fcd.tar.bz2
mts-io-d5beeadc07864a4bdc970ed76bd4693529039fcd.zip
add leds b-f for mtr/mtocgd hw
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r--io-module/mts_io.c52
1 files changed, 52 insertions, 0 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index 1cae937..60ab232 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -692,6 +692,15 @@ static struct gpio_pin gpio_pins_mtr_0_0[] = {
.active_low = 1,
},
{
+ .name = "LED3",
+ .attr_name = "led-b",
+ .pin = AT91_PIN_PC15,
+ .direction = GPIO_DIR_OUTPUT,
+ .output_value = 1,
+ .use_pullup = 0,
+ .active_low = 1,
+ },
+ {
.name = "LED4",
.attr_name = "led-cd",
.pin = AT91_PIN_PC20,
@@ -701,6 +710,15 @@ static struct gpio_pin gpio_pins_mtr_0_0[] = {
.active_low = 1,
},
{
+ .name = "LED4",
+ .attr_name = "led-c",
+ .pin = AT91_PIN_PC20,
+ .direction = GPIO_DIR_OUTPUT,
+ .output_value = 1,
+ .use_pullup = 0,
+ .active_low = 1,
+ },
+ {
.name = "LED6",
.attr_name = "led-sig1",
.pin = AT91_PIN_PC19,
@@ -710,6 +728,15 @@ static struct gpio_pin gpio_pins_mtr_0_0[] = {
.active_low = 1,
},
{
+ .name = "LED6",
+ .attr_name = "led-d",
+ .pin = AT91_PIN_PC19,
+ .direction = GPIO_DIR_OUTPUT,
+ .output_value = 1,
+ .use_pullup = 0,
+ .active_low = 1,
+ },
+ {
.name = "LED7",
.attr_name = "led-sig2",
.pin = AT91_PIN_PC18,
@@ -719,6 +746,15 @@ static struct gpio_pin gpio_pins_mtr_0_0[] = {
.active_low = 1,
},
{
+ .name = "LED7",
+ .attr_name = "led-e",
+ .pin = AT91_PIN_PC18,
+ .direction = GPIO_DIR_OUTPUT,
+ .output_value = 1,
+ .use_pullup = 0,
+ .active_low = 1,
+ },
+ {
.name = "LED8",
.attr_name = "led-sig3",
.pin = AT91_PIN_PC17,
@@ -728,6 +764,15 @@ static struct gpio_pin gpio_pins_mtr_0_0[] = {
.active_low = 1,
},
{
+ .name = "LED8",
+ .attr_name = "led-f",
+ .pin = AT91_PIN_PC17,
+ .direction = GPIO_DIR_OUTPUT,
+ .output_value = 1,
+ .use_pullup = 0,
+ .active_low = 1,
+ },
+ {
.name = "RI_B",
.attr_name = "extserial-ri",
.pin = AT91_PIN_PC25,
@@ -2152,6 +2197,13 @@ static struct attribute *mtr_platform_attributes[] = {
&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,
+
NULL,
};