• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/arm/plat-orion/include/plat/
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#include <linux/init.h>
15
16/*
17 * GENERIC_GPIO primitives.
18 */
19#define gpio_get_value  __gpio_get_value
20#define gpio_set_value  __gpio_set_value
21#define gpio_cansleep   __gpio_cansleep
22
23/*
24 * Orion-specific GPIO API extensions.
25 */
26void orion_gpio_set_unused(unsigned pin);
27void orion_gpio_set_blink(unsigned pin, int blink);
28
29#define GPIO_INPUT_OK		(1 << 0)
30#define GPIO_OUTPUT_OK		(1 << 1)
31void orion_gpio_set_valid(unsigned pin, int mode);
32
33/* Initialize gpiolib. */
34void __init orion_gpio_init(void);
35
36/*
37 * GPIO interrupt handling.
38 */
39extern struct irq_chip orion_gpio_irq_chip;
40void orion_gpio_irq_handler(int irqoff);
41
42
43#endif
44