gpio-ts5500.h 838 B

123456789101112131415161718192021222324252627
  1. /*
  2. * GPIO (DIO) header for Technologic Systems TS-5500
  3. *
  4. * Copyright (c) 2012 Savoir-faire Linux Inc.
  5. * Vivien Didelot <vivien.didelot@savoirfairelinux.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef _PDATA_GPIO_TS5500_H
  12. #define _PDATA_GPIO_TS5500_H
  13. /**
  14. * struct ts5500_dio_platform_data - TS-5500 pin block configuration
  15. * @base: The GPIO base number to use.
  16. * @strap: The only pin connected to an interrupt in a block is input-only.
  17. * If you need a bidirectional line which can trigger an IRQ, you
  18. * may strap it with an in/out pin. This flag indicates this case.
  19. */
  20. struct ts5500_dio_platform_data {
  21. int base;
  22. bool strap;
  23. };
  24. #endif /* _PDATA_GPIO_TS5500_H */