gpio.h 316 B

12345678910111213
  1. #ifndef __ASM_MACH_GPIO_H
  2. #define __ASM_MACH_GPIO_H
  3. #include <asm-generic/gpio.h>
  4. #define gpio_to_irq(gpio) (IRQ_GPIO_START + (gpio))
  5. #define irq_to_gpio(irq) ((irq) - IRQ_GPIO_START)
  6. #define __gpio_is_inverted(gpio) (0)
  7. #define __gpio_is_occupied(gpio) (0)
  8. #include <plat/gpio.h>
  9. #endif /* __ASM_MACH_GPIO_H */