ab8500-gpio.h 666 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright ST-Ericsson 2010.
  3. *
  4. * Author: Bibek Basu <bibek.basu@stericsson.com>
  5. * Licensed under GPLv2.
  6. */
  7. #ifndef _AB8500_GPIO_H
  8. #define _AB8500_GPIO_H
  9. /*
  10. * Platform data to register a block: only the initial gpio/irq number.
  11. * Array sizes are large enough to contain all AB8500 and AB9540 GPIO
  12. * registers.
  13. */
  14. struct abx500_gpio_platform_data {
  15. int gpio_base;
  16. };
  17. enum abx500_gpio_pull_updown {
  18. ABX500_GPIO_PULL_DOWN = 0x0,
  19. ABX500_GPIO_PULL_NONE = 0x1,
  20. ABX500_GPIO_PULL_UP = 0x3,
  21. };
  22. enum abx500_gpio_vinsel {
  23. ABX500_GPIO_VINSEL_VBAT = 0x0,
  24. ABX500_GPIO_VINSEL_VIN_1V8 = 0x1,
  25. ABX500_GPIO_VINSEL_VDD_BIF = 0x2,
  26. };
  27. #endif /* _AB8500_GPIO_H */