gpio-ks8695.h 965 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (C) 2006 Andrew Victor
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __MACH_KS8659_GPIO_H
  9. #define __MACH_KS8659_GPIO_H
  10. #include <linux/kernel.h>
  11. #define KS8695_GPIO_0 0
  12. #define KS8695_GPIO_1 1
  13. #define KS8695_GPIO_2 2
  14. #define KS8695_GPIO_3 3
  15. #define KS8695_GPIO_4 4
  16. #define KS8695_GPIO_5 5
  17. #define KS8695_GPIO_6 6
  18. #define KS8695_GPIO_7 7
  19. #define KS8695_GPIO_8 8
  20. #define KS8695_GPIO_9 9
  21. #define KS8695_GPIO_10 10
  22. #define KS8695_GPIO_11 11
  23. #define KS8695_GPIO_12 12
  24. #define KS8695_GPIO_13 13
  25. #define KS8695_GPIO_14 14
  26. #define KS8695_GPIO_15 15
  27. /*
  28. * Configure GPIO pin as external interrupt source.
  29. */
  30. extern int ks8695_gpio_interrupt(unsigned int pin, unsigned int type);
  31. /* Register the GPIOs */
  32. extern void ks8695_register_gpios(void);
  33. #endif /* __MACH_KS8659_GPIO_H */