diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2008-10-19 19:51:03 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@cam.org> | 2008-12-20 12:21:02 -0500 |
commit | 9569dae75f6f6987e79fa26cf6da3fc24006c996 (patch) | |
tree | b5982f41aea6ccee37af54fc8f7750aaff7e0bff /arch/arm/plat-orion/include | |
parent | 6fd7c7fe72a46dfd227fe8db0c7b6863af90a982 (diff) |
[ARM] Orion: share GPIO handling code
Split off Orion GPIO handling code into plat-orion/, and add
support for multiple sets of (32) GPIO pins.
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
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 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm/plat-orion/include/plat/gpio.h b/arch/arm/plat-orion/include/plat/gpio.h new file mode 100644 index 000000000000..956658df269f --- /dev/null +++ b/arch/arm/plat-orion/include/plat/gpio.h | |||
@@ -0,0 +1,32 @@ | |||
1 | /* | ||
2 | * arch/arm/plat-orion/include/plat/gpio.h | ||
3 | * | ||
4 | * Marvell Orion SoC GPIO handling. | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #ifndef __PLAT_GPIO_H | ||
12 | #define __PLAT_GPIO_H | ||
13 | |||
14 | /* | ||
15 | * GENERIC_GPIO primitives. | ||
16 | */ | ||
17 | int gpio_request(unsigned pin, const char *label); | ||
18 | void gpio_free(unsigned pin); | ||
19 | int gpio_direction_input(unsigned pin); | ||
20 | int gpio_direction_output(unsigned pin, int value); | ||
21 | int gpio_get_value(unsigned pin); | ||
22 | void gpio_set_value(unsigned pin, int value); | ||
23 | |||
24 | /* | ||
25 | * Orion-specific GPIO API extensions. | ||
26 | */ | ||
27 | void orion_gpio_set_unused(unsigned pin); | ||
28 | void orion_gpio_set_valid(unsigned pin, int valid); | ||
29 | void orion_gpio_set_blink(unsigned pin, int blink); | ||
30 | |||
31 | |||
32 | #endif | ||