diff options
author | Arnd Bergmann <arnd@arndb.de> | 2014-03-26 18:03:09 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2014-03-26 18:03:18 -0400 |
commit | 9c9c6c55a887dfe4e68d48d0829e412ed4f14ca9 (patch) | |
tree | ca529c169d9e6d63b2b184a09de1003960298046 /arch/arm/mach-ixp4xx | |
parent | 600a1dfae24746ccd8b1617742ef7b98099f83b8 (diff) |
Revert "ARM: ixp4xx: fix gpio rework"
This reverts commit 48ba81f6fdb7580a5c474da1b14a338e1358e6ab.
A better fix was sent by Krzysztof Halasa.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-ixp4xx')
-rw-r--r-- | arch/arm/mach-ixp4xx/common.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-ixp4xx/goramo_mlr.c | 7 |
2 files changed, 3 insertions, 10 deletions
diff --git a/arch/arm/mach-ixp4xx/common.c b/arch/arm/mach-ixp4xx/common.c index eef39c7ad0cf..df82a2b4a546 100644 --- a/arch/arm/mach-ixp4xx/common.c +++ b/arch/arm/mach-ixp4xx/common.c | |||
@@ -100,7 +100,7 @@ void __init ixp4xx_map_io(void) | |||
100 | #define IXP4XX_GPIO_CLK_0 14 | 100 | #define IXP4XX_GPIO_CLK_0 14 |
101 | #define IXP4XX_GPIO_CLK_1 15 | 101 | #define IXP4XX_GPIO_CLK_1 15 |
102 | 102 | ||
103 | void gpio_line_config(u8 line, u32 direction) | 103 | static void gpio_line_config(u8 line, u32 direction) |
104 | { | 104 | { |
105 | if (direction == IXP4XX_GPIO_IN) | 105 | if (direction == IXP4XX_GPIO_IN) |
106 | *IXP4XX_GPIO_GPOER |= (1 << line); | 106 | *IXP4XX_GPIO_GPOER |= (1 << line); |
@@ -108,12 +108,12 @@ void gpio_line_config(u8 line, u32 direction) | |||
108 | *IXP4XX_GPIO_GPOER &= ~(1 << line); | 108 | *IXP4XX_GPIO_GPOER &= ~(1 << line); |
109 | } | 109 | } |
110 | 110 | ||
111 | void gpio_line_get(u8 line, int *value) | 111 | static void gpio_line_get(u8 line, int *value) |
112 | { | 112 | { |
113 | *value = (*IXP4XX_GPIO_GPINR >> line) & 0x1; | 113 | *value = (*IXP4XX_GPIO_GPINR >> line) & 0x1; |
114 | } | 114 | } |
115 | 115 | ||
116 | void gpio_line_set(u8 line, int value) | 116 | static void gpio_line_set(u8 line, int value) |
117 | { | 117 | { |
118 | if (value == IXP4XX_GPIO_HIGH) | 118 | if (value == IXP4XX_GPIO_HIGH) |
119 | *IXP4XX_GPIO_GPOUTR |= (1 << line); | 119 | *IXP4XX_GPIO_GPOUTR |= (1 << line); |
diff --git a/arch/arm/mach-ixp4xx/goramo_mlr.c b/arch/arm/mach-ixp4xx/goramo_mlr.c index 5a635c657ea2..e54ff491c105 100644 --- a/arch/arm/mach-ixp4xx/goramo_mlr.c +++ b/arch/arm/mach-ixp4xx/goramo_mlr.c | |||
@@ -17,13 +17,6 @@ | |||
17 | #include <asm/mach/pci.h> | 17 | #include <asm/mach/pci.h> |
18 | #include <asm/system_info.h> | 18 | #include <asm/system_info.h> |
19 | 19 | ||
20 | #define IXP4XX_GPIO_OUT 0x1 | ||
21 | #define IXP4XX_GPIO_IN 0x2 | ||
22 | |||
23 | void gpio_line_config(u8 line, u32 direction); | ||
24 | void gpio_line_get(u8 line, int *value); | ||
25 | void gpio_line_set(u8 line, int value); | ||
26 | |||
27 | #define SLOT_ETHA 0x0B /* IDSEL = AD21 */ | 20 | #define SLOT_ETHA 0x0B /* IDSEL = AD21 */ |
28 | #define SLOT_ETHB 0x0C /* IDSEL = AD20 */ | 21 | #define SLOT_ETHB 0x0C /* IDSEL = AD20 */ |
29 | #define SLOT_MPCI 0x0D /* IDSEL = AD19 */ | 22 | #define SLOT_MPCI 0x0D /* IDSEL = AD19 */ |