timb_gpio.h 717 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * timb_gpio.h timberdale FPGA GPIO driver, platform data definition
  4. * Copyright (c) 2009 Intel Corporation
  5. */
  6. #ifndef _LINUX_TIMB_GPIO_H
  7. #define _LINUX_TIMB_GPIO_H
  8. /**
  9. * struct timbgpio_platform_data - Platform data of the Timberdale GPIO driver
  10. * @gpio_base The number of the first GPIO pin, set to -1 for
  11. * dynamic number allocation.
  12. * @nr_pins Number of pins that is supported by the hardware (1-32)
  13. * @irq_base If IRQ is supported by the hardware, this is the base
  14. * number of IRQ:s. One IRQ per pin will be used. Set to
  15. * -1 if IRQ:s is not supported.
  16. */
  17. struct timbgpio_platform_data {
  18. int gpio_base;
  19. int nr_pins;
  20. int irq_base;
  21. };
  22. #endif