diff options
Diffstat (limited to 'arch/mips/include/asm/mach-ath79/gpio.h')
| -rw-r--r-- | arch/mips/include/asm/mach-ath79/gpio.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-ath79/gpio.h b/arch/mips/include/asm/mach-ath79/gpio.h new file mode 100644 index 000000000000..60dcb62785b4 --- /dev/null +++ b/arch/mips/include/asm/mach-ath79/gpio.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* | ||
| 2 | * Atheros AR71XX/AR724X/AR913X GPIO API definitions | ||
| 3 | * | ||
| 4 | * Copyright (C) 2008-2010 Gabor Juhos <juhosg@openwrt.org> | ||
| 5 | * Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org> | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify it | ||
| 8 | * under the terms of the GNU General Public License version 2 as published | ||
| 9 | * by the Free Software Foundation. | ||
| 10 | * | ||
| 11 | */ | ||
| 12 | |||
| 13 | #ifndef __ASM_MACH_ATH79_GPIO_H | ||
| 14 | #define __ASM_MACH_ATH79_GPIO_H | ||
| 15 | |||
| 16 | #define ARCH_NR_GPIOS 64 | ||
| 17 | #include <asm-generic/gpio.h> | ||
| 18 | |||
| 19 | int gpio_to_irq(unsigned gpio); | ||
| 20 | int irq_to_gpio(unsigned irq); | ||
| 21 | int gpio_get_value(unsigned gpio); | ||
| 22 | void gpio_set_value(unsigned gpio, int value); | ||
| 23 | |||
| 24 | #define gpio_cansleep __gpio_cansleep | ||
| 25 | |||
| 26 | #endif /* __ASM_MACH_ATH79_GPIO_H */ | ||
