summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Gonchar <leonid.gonchar@globallogic.com>2018-06-26 14:31:59 +0300
committerLeonid Gonchar <leonid.gonchar@globallogic.com>2018-06-26 16:48:38 +0300
commitef4590c58cb49292df824edb86dcbfac9fb9aea2 (patch)
tree25bd75020c0e3d736d5241fb21b19299764a6ac7
parentdc450195b63fd13ff74154e5ca06fabec58afd11 (diff)
downloadmts-io-ef4590c58cb49292df824edb86dcbfac9fb9aea2.tar.gz
mts-io-ef4590c58cb49292df824edb86dcbfac9fb9aea2.tar.bz2
mts-io-ef4590c58cb49292df824edb86dcbfac9fb9aea2.zip
Sig legs are swapped. Removing led-cd
-rw-r--r--io-module/mths.c45
1 files changed, 18 insertions, 27 deletions
diff --git a/io-module/mths.c b/io-module/mths.c
index 28a4f19..79ba885 100644
--- a/io-module/mths.c
+++ b/io-module/mths.c
@@ -66,7 +66,7 @@ static struct gpio_pin gpio_pins_mths_0_0[] = {
{
.name = "LS_LED",
.pin = {
- .gpio = AT91_PIN_PC4,
+ .gpio = AT91_PIN_PC16,
#if LED_LS_CONTROLLABLE
.flags = GPIOF_OUT_INIT_HIGH,
#else
@@ -104,7 +104,7 @@ static struct gpio_pin gpio_pins_mths_0_0[] = {
.active_low = 1,
},
{
- .name = "LED3",
+ .name = "LED4",
.pin = {
.gpio = AT91_PIN_PC20,
.flags = GPIOF_OUT_INIT_HIGH,
@@ -113,38 +113,29 @@ static struct gpio_pin gpio_pins_mths_0_0[] = {
.active_low = 1,
},
{
- .name = "LED4",
- .pin = {
- .gpio = AT91_PIN_PC16,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-cd",
- },
- .active_low = 1,
- },
- {
- .name = "LED5",
- .pin = {
- .gpio = AT91_PIN_PC21,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-status",
- },
- .active_low = 1,
+ .name = "LED5",
+ .pin = {
+ .gpio = AT91_PIN_PC21,
+ .flags = GPIOF_OUT_INIT_HIGH,
+ .label = "led-status",
+ },
+ .active_low = 1,
},
{
- .name = "LED5",
- .pin = {
- .gpio = AT91_PIN_PC16,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-c",
- },
- .active_low = 1,
+ .name = "LED5",
+ .pin = {
+ .gpio = AT91_PIN_PC21,
+ .flags = GPIOF_OUT_INIT_HIGH,
+ .label = "led-cd",
+ },
+ .active_low = 1,
},
{
.name = "LED6",
.pin = {
.gpio = AT91_PIN_PC19,
.flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-sig1",
+ .label = "led-sig3",
},
.active_low = 1,
},
@@ -180,7 +171,7 @@ static struct gpio_pin gpio_pins_mths_0_0[] = {
.pin = {
.gpio = AT91_PIN_PC17,
.flags = GPIOF_OUT_INIT_HIGH,
- .label = "led-sig3",
+ .label = "led-sig1",
},
.active_low = 1,
},