Magnus Damm | 7fdda67 | 2010-02-10 20:10:55 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Generic GPIO API and pinmux table support |
| 3 | * |
| 4 | * Copyright (c) 2008 Magnus Damm |
| 5 | * |
| 6 | * This file is subject to the terms and conditions of the GNU General Public |
| 7 | * License. See the file "COPYING" in the main directory of this archive |
| 8 | * for more details. |
| 9 | */ |
| 10 | #ifndef __ASM_ARCH_GPIO_H |
| 11 | #define __ASM_ARCH_GPIO_H |
| 12 | |
| 13 | #include <linux/kernel.h> |
| 14 | #include <linux/errno.h> |
| 15 | |
| 16 | #define ARCH_NR_GPIOS 1024 |
| 17 | #include <linux/sh_pfc.h> |
| 18 | |
| 19 | #ifdef CONFIG_GPIOLIB |
| 20 | |
Magnus Damm | 7fdda67 | 2010-02-10 20:10:55 +0900 | [diff] [blame] | 21 | static inline int irq_to_gpio(unsigned int irq) |
| 22 | { |
Paul Mundt | cad3cde | 2010-11-04 12:19:11 +0900 | [diff] [blame] | 23 | return -ENOSYS; |
Magnus Damm | 7fdda67 | 2010-02-10 20:10:55 +0900 | [diff] [blame] | 24 | } |
| 25 | |
Russell King | 8f3c453 | 2011-08-08 13:58:28 +0100 | [diff] [blame] | 26 | #else |
| 27 | |
| 28 | #define __ARM_GPIOLIB_COMPLEX |
| 29 | |
Magnus Damm | 7fdda67 | 2010-02-10 20:10:55 +0900 | [diff] [blame] | 30 | #endif /* CONFIG_GPIOLIB */ |
| 31 | |
| 32 | #endif /* __ASM_ARCH_GPIO_H */ |