forked from Minki/linux
Revert "ARM: ixp4xx: fix gpio rework"
This reverts commit 48ba81f6fd
.
A better fix was sent by Krzysztof Halasa.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
600a1dfae2
commit
9c9c6c55a8
@ -100,7 +100,7 @@ void __init ixp4xx_map_io(void)
|
||||
#define IXP4XX_GPIO_CLK_0 14
|
||||
#define IXP4XX_GPIO_CLK_1 15
|
||||
|
||||
void gpio_line_config(u8 line, u32 direction)
|
||||
static void gpio_line_config(u8 line, u32 direction)
|
||||
{
|
||||
if (direction == IXP4XX_GPIO_IN)
|
||||
*IXP4XX_GPIO_GPOER |= (1 << line);
|
||||
@ -108,12 +108,12 @@ void gpio_line_config(u8 line, u32 direction)
|
||||
*IXP4XX_GPIO_GPOER &= ~(1 << line);
|
||||
}
|
||||
|
||||
void gpio_line_get(u8 line, int *value)
|
||||
static void gpio_line_get(u8 line, int *value)
|
||||
{
|
||||
*value = (*IXP4XX_GPIO_GPINR >> line) & 0x1;
|
||||
}
|
||||
|
||||
void gpio_line_set(u8 line, int value)
|
||||
static void gpio_line_set(u8 line, int value)
|
||||
{
|
||||
if (value == IXP4XX_GPIO_HIGH)
|
||||
*IXP4XX_GPIO_GPOUTR |= (1 << line);
|
||||
|
@ -17,13 +17,6 @@
|
||||
#include <asm/mach/pci.h>
|
||||
#include <asm/system_info.h>
|
||||
|
||||
#define IXP4XX_GPIO_OUT 0x1
|
||||
#define IXP4XX_GPIO_IN 0x2
|
||||
|
||||
void gpio_line_config(u8 line, u32 direction);
|
||||
void gpio_line_get(u8 line, int *value);
|
||||
void gpio_line_set(u8 line, int value);
|
||||
|
||||
#define SLOT_ETHA 0x0B /* IDSEL = AD21 */
|
||||
#define SLOT_ETHB 0x0C /* IDSEL = AD20 */
|
||||
#define SLOT_MPCI 0x0D /* IDSEL = AD19 */
|
||||
|
Loading…
Reference in New Issue
Block a user