Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6.git] / include / linux / gpio-pxa.h
blobd90ebbe02ca4b257ff00a7a628f34aaef25ab3be
1 #ifndef __GPIO_PXA_H
2 #define __GPIO_PXA_H
4 #define GPIO_bit(x) (1 << ((x) & 0x1f))
6 #define gpio_to_bank(gpio) ((gpio) >> 5)
8 /* NOTE: some PXAs have fewer on-chip GPIOs (like PXA255, with 85).
9 * Those cases currently cause holes in the GPIO number space, the
10 * actual number of the last GPIO is recorded by 'pxa_last_gpio'.
12 extern int pxa_last_gpio;
14 extern int pxa_irq_to_gpio(int irq);
16 struct pxa_gpio_platform_data {
17 int irq_base;
18 int (*gpio_set_wake)(unsigned int gpio, unsigned int on);
21 #endif /* __GPIO_PXA_H */