devices-db5500.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (C) ST-Ericsson SA 2010
  3. *
  4. * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson
  5. * License terms: GNU General Public License (GPL) version 2
  6. */
  7. #include <linux/platform_device.h>
  8. #include <linux/interrupt.h>
  9. #include <linux/gpio.h>
  10. #include <mach/hardware.h>
  11. #include <mach/devices.h>
  12. static struct nmk_gpio_platform_data u5500_gpio_data[] = {
  13. GPIO_DATA("GPIO-0-31", 0),
  14. GPIO_DATA("GPIO-32-63", 32), /* 36..63 not routed to pin */
  15. GPIO_DATA("GPIO-64-95", 64), /* 83..95 not routed to pin */
  16. GPIO_DATA("GPIO-96-127", 96), /* 102..127 not routed to pin */
  17. GPIO_DATA("GPIO-128-159", 128), /* 149..159 not routed to pin */
  18. GPIO_DATA("GPIO-160-191", 160),
  19. GPIO_DATA("GPIO-192-223", 192),
  20. GPIO_DATA("GPIO-224-255", 224), /* 228..255 not routed to pin */
  21. };
  22. static struct resource u5500_gpio_resources[] = {
  23. GPIO_RESOURCE(0),
  24. GPIO_RESOURCE(1),
  25. GPIO_RESOURCE(2),
  26. GPIO_RESOURCE(3),
  27. GPIO_RESOURCE(4),
  28. GPIO_RESOURCE(5),
  29. GPIO_RESOURCE(6),
  30. GPIO_RESOURCE(7),
  31. };
  32. struct platform_device u5500_gpio_devs[] = {
  33. GPIO_DEVICE(0),
  34. GPIO_DEVICE(1),
  35. GPIO_DEVICE(2),
  36. GPIO_DEVICE(3),
  37. GPIO_DEVICE(4),
  38. GPIO_DEVICE(5),
  39. GPIO_DEVICE(6),
  40. GPIO_DEVICE(7),
  41. };