gpio.h 588 B

123456789101112131415161718192021222324252627282930
  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. #include <linux/kernel.h>
  13. #include <linux/errno.h>
  14. #include <linux/sh_pfc.h>
  15. #ifdef CONFIG_GPIOLIB
  16. static inline int irq_to_gpio(unsigned int irq)
  17. {
  18. return -ENOSYS;
  19. }
  20. #else
  21. #define __ARM_GPIOLIB_COMPLEX
  22. #endif /* CONFIG_GPIOLIB */
  23. #endif /* __ASM_ARCH_GPIO_H */