gpio-u300.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (C) 2007-2011 ST-Ericsson AB
  3. * License terms: GNU General Public License (GPL) version 2
  4. * GPIO block resgister definitions and inline macros for
  5. * U300 GPIO COH 901 335 or COH 901 571/3
  6. * Author: Linus Walleij <linus.walleij@stericsson.com>
  7. */
  8. #ifndef __MACH_U300_GPIO_U300_H
  9. #define __MACH_U300_GPIO_U300_H
  10. /**
  11. * enum u300_gpio_variant - the type of U300 GPIO employed
  12. */
  13. enum u300_gpio_variant {
  14. U300_GPIO_COH901335,
  15. U300_GPIO_COH901571_3_BS335,
  16. U300_GPIO_COH901571_3_BS365,
  17. };
  18. /**
  19. * struct u300_gpio_platform - U300 GPIO platform data
  20. * @variant: IP block variant
  21. * @ports: number of GPIO block ports
  22. * @gpio_base: first GPIO number for this block (use a free range)
  23. * @gpio_irq_base: first GPIO IRQ number for this block (use a free range)
  24. * @pinctrl_device: pin control device to spawn as child
  25. */
  26. struct u300_gpio_platform {
  27. enum u300_gpio_variant variant;
  28. u8 ports;
  29. int gpio_base;
  30. int gpio_irq_base;
  31. struct platform_device *pinctrl_device;
  32. };
  33. #endif /* __MACH_U300_GPIO_U300_H */