m68knommu: Coldfire GPIO corrections
authorSteven King <sfking@fdwdc.com>
Thu, 15 Oct 2009 19:54:41 +0000 (12:54 -0700)
committerGreg Ungerer <gerg@goober.(none)>
Fri, 4 Dec 2009 01:45:30 +0000 (11:45 +1000)
Pin 0 of the EPORT is not connected on the 523x, 5271, 5275 and 528x and the
TIMER on the 523x has 8 pins, not 4.

Signed-off-by: Steven King <sfking@fdwdc.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68knommu/platform/523x/gpio.c
arch/m68knommu/platform/527x/gpio.c
arch/m68knommu/platform/528x/gpio.c

index f02840d54d3c08a173b3202403c18309da05de07..a8842dc278391ef3779f174be88fc8b56687cf77 100644 (file)
@@ -30,7 +30,8 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .direction_output       = mcf_gpio_direction_output,
                        .get                    = mcf_gpio_get_value,
                        .set                    = mcf_gpio_set_value,
-                       .ngpio                  = 8,
+                       .base                   = 1,
+                       .ngpio                  = 7,
                },
                .pddr                           = MCFEPORT_EPDDR,
                .podr                           = MCFEPORT_EPDR,
@@ -244,7 +245,7 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .get                    = mcf_gpio_get_value,
                        .set                    = mcf_gpio_set_value_fast,
                        .base                   = 96,
-                       .ngpio                  = 4,
+                       .ngpio                  = 8,
                },
                .pddr                           = MCFGPIO_PDDR_TIMER,
                .podr                           = MCFGPIO_PODR_TIMER,
index 1028142851ac86faba488b43c1273a82bc2c6eec..0b56e19db0f8912ee0341ffef89174d21eb1a3c7 100644 (file)
@@ -31,7 +31,8 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .direction_output       = mcf_gpio_direction_output,
                        .get                    = mcf_gpio_get_value,
                        .set                    = mcf_gpio_set_value,
-                       .ngpio                  = 8,
+                       .base                   = 1,
+                       .ngpio                  = 7,
                },
                .pddr                           = MCFEPORT_EPDDR,
                .podr                           = MCFEPORT_EPDR,
@@ -263,7 +264,8 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .direction_output       = mcf_gpio_direction_output,
                        .get                    = mcf_gpio_get_value,
                        .set                    = mcf_gpio_set_value,
-                       .ngpio                  = 8,
+                       .base                   = 1,
+                       .ngpio                  = 7,
                },
                .pddr                           = MCFEPORT_EPDDR,
                .podr                           = MCFEPORT_EPDR,
index ec593950696aaf5af2d36b0aa93f791c859c8144..eedaf0adbcd7d949a5f646ebc2ae1a90669f7bc6 100644 (file)
@@ -31,7 +31,7 @@ static struct mcf_gpio_chip mcf_gpio_chips[] = {
                        .get                    = mcf_gpio_get_value,
                        .set                    = mcf_gpio_set_value,
                        .base                   = 1,
-                       .ngpio                  = 8,
+                       .ngpio                  = 7,
                },
                .pddr                           = MCFEPORT_EPDDR,
                .podr                           = MCFEPORT_EPDR,