gpio-pxa.h 422 B

12345678910111213141516
  1. #ifndef __GPIO_PXA_H
  2. #define __GPIO_PXA_H
  3. #define GPIO_bit(x) (1 << ((x) & 0x1f))
  4. #define gpio_to_bank(gpio) ((gpio) >> 5)
  5. /* NOTE: some PXAs have fewer on-chip GPIOs (like PXA255, with 85).
  6. * Those cases currently cause holes in the GPIO number space, the
  7. * actual number of the last GPIO is recorded by 'pxa_last_gpio'.
  8. */
  9. extern int pxa_last_gpio;
  10. extern int pxa_irq_to_gpio(int irq);
  11. #endif /* __GPIO_PXA_H */