David Brownell | 4c20386c | 2007-02-12 00:53:11 -0800 | [diff] [blame] | 1 | #ifndef _ARCH_ARM_GPIO_H |
| 2 | #define _ARCH_ARM_GPIO_H |
| 3 | |
| 4 | /* not all ARM platforms necessarily support this API ... */ |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 5 | #include <mach/gpio.h> |
David Brownell | 4c20386c | 2007-02-12 00:53:11 -0800 | [diff] [blame] | 6 | |
Russell King | 22fe678 | 2011-07-26 11:04:51 +0100 | [diff] [blame^] | 7 | #ifdef __ARM_GPIOLIB_TRIVIAL |
| 8 | /* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */ |
| 9 | #include <asm-generic/gpio.h> |
| 10 | |
| 11 | /* The trivial gpiolib dispatchers */ |
| 12 | #define gpio_get_value __gpio_get_value |
| 13 | #define gpio_set_value __gpio_set_value |
| 14 | #define gpio_cansleep __gpio_cansleep |
| 15 | #endif |
| 16 | |
David Brownell | 4c20386c | 2007-02-12 00:53:11 -0800 | [diff] [blame] | 17 | #endif /* _ARCH_ARM_GPIO_H */ |