gpio-dwapb.h 829 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright(c) 2014 Intel Corporation.
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms and conditions of the GNU General Public License,
  6. * version 2, as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope it will be useful, but WITHOUT
  9. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  11. * more details.
  12. */
  13. #ifndef GPIO_DW_APB_H
  14. #define GPIO_DW_APB_H
  15. struct dwapb_port_property {
  16. struct device_node *node;
  17. const char *name;
  18. unsigned int idx;
  19. unsigned int ngpio;
  20. unsigned int gpio_base;
  21. unsigned int irq;
  22. bool irq_shared;
  23. };
  24. struct dwapb_platform_data {
  25. struct dwapb_port_property *properties;
  26. unsigned int nports;
  27. };
  28. #endif