Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild...
[sfrench/cifs-2.6.git] / arch / arm / plat-orion / include / plat / gpio.h
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 #define gpio_get_value  __gpio_get_value
18 #define gpio_set_value  __gpio_set_value
19 #define gpio_cansleep   __gpio_cansleep
20
21 /*
22  * Orion-specific GPIO API extensions.
23  */
24 void orion_gpio_set_unused(unsigned pin);
25 void orion_gpio_set_blink(unsigned pin, int blink);
26
27 #define GPIO_INPUT_OK           (1 << 0)
28 #define GPIO_OUTPUT_OK          (1 << 1)
29 void orion_gpio_set_valid(unsigned pin, int mode);
30
31 /* Initialize gpiolib. */
32 void __init orion_gpio_init(void);
33
34 /*
35  * GPIO interrupt handling.
36  */
37 extern struct irq_chip orion_gpio_irq_chip;
38 void orion_gpio_irq_handler(int irqoff);
39
40
41 #endif