RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / arm / plat-orion / include / plat / gpio.h
blob07c430fdc9ef6489328337c05cee85fecb49524c
1 /*
2 * arch/arm/plat-orion/include/plat/gpio.h
4 * Marvell Orion SoC GPIO handling.
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 */
11 #ifndef __PLAT_GPIO_H
12 #define __PLAT_GPIO_H
14 #include <linux/init.h>
17 * GENERIC_GPIO primitives.
19 #define gpio_get_value __gpio_get_value
20 #define gpio_set_value __gpio_set_value
21 #define gpio_cansleep __gpio_cansleep
24 * Orion-specific GPIO API extensions.
26 void orion_gpio_set_unused(unsigned pin);
27 void orion_gpio_set_blink(unsigned pin, int blink);
29 #define GPIO_INPUT_OK (1 << 0)
30 #define GPIO_OUTPUT_OK (1 << 1)
31 void orion_gpio_set_valid(unsigned pin, int mode);
33 /* Initialize gpiolib. */
34 void __init orion_gpio_init(void);
37 * GPIO interrupt handling.
39 extern struct irq_chip orion_gpio_irq_chip;
40 void orion_gpio_irq_handler(int irqoff);
43 #endif