Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / arch / arm / plat-orion / include / plat / gpio.h
blob3abf30428beed9caf85574e63cf9440f068c8225
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>
15 #include <linux/types.h>
18 * Orion-specific GPIO API extensions.
20 void orion_gpio_set_unused(unsigned pin);
21 void orion_gpio_set_blink(unsigned pin, int blink);
23 #define GPIO_INPUT_OK (1 << 0)
24 #define GPIO_OUTPUT_OK (1 << 1)
25 void orion_gpio_set_valid(unsigned pin, int mode);
27 /* Initialize gpiolib. */
28 void __init orion_gpio_init(int gpio_base, int ngpio,
29 u32 base, int mask_offset, int secondary_irq_base);
32 * GPIO interrupt handling.
34 void orion_gpio_irq_handler(int irqoff);
37 #endif