diff options
author | Nicolas Pitre <nico@cam.org> | 2009-02-02 20:27:55 (GMT) |
---|---|---|
committer | Nicolas Pitre <nico@cam.org> | 2009-02-20 03:26:58 (GMT) |
commit | 28d27cf4ce8378180eda32aa7d8e778c9e72a54f (patch) | |
tree | b774e297b88a3df9e4bd89dcd7efa42f323c2c77 /arch/arm/plat-orion/include | |
parent | 22fc1db12515e1b528570c547fd27e38df792f1f (diff) | |
download | linux-28d27cf4ce8378180eda32aa7d8e778c9e72a54f.tar.xz |
[ARM] Orion: make gpio /input/output validation separate
Especially on Kirkwood, a couple GPIOs are actually only output capable.
Let's separate the ability to configure a GPIO as input or output to
accommodate this restriction.
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'arch/arm/plat-orion/include')
-rw-r--r-- | arch/arm/plat-orion/include/plat/gpio.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/plat-orion/include/plat/gpio.h b/arch/arm/plat-orion/include/plat/gpio.h index ec743e8..33f6c6a 100644 --- a/arch/arm/plat-orion/include/plat/gpio.h +++ b/arch/arm/plat-orion/include/plat/gpio.h @@ -25,9 +25,13 @@ void gpio_set_value(unsigned pin, int value); * Orion-specific GPIO API extensions. */ void orion_gpio_set_unused(unsigned pin); -void orion_gpio_set_valid(unsigned pin, int valid); void orion_gpio_set_blink(unsigned pin, int blink); +#define GPIO_BIDI_OK (1 << 0) +#define GPIO_INPUT_OK (1 << 1) +#define GPIO_OUTPUT_OK (1 << 2) +void orion_gpio_set_valid(unsigned pin, int mode); + /* * GPIO interrupt handling. */ |