Thomas Gleixner | 82c2981 | 2019-05-28 09:57:05 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Richard Röjfors | 35570ac | 2009-12-15 16:46:18 -0800 | [diff] [blame] | 2 | /* |
| 3 | * timb_gpio.h timberdale FPGA GPIO driver, platform data definition |
| 4 | * Copyright (c) 2009 Intel Corporation |
Richard Röjfors | 35570ac | 2009-12-15 16:46:18 -0800 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _LINUX_TIMB_GPIO_H |
| 8 | #define _LINUX_TIMB_GPIO_H |
| 9 | |
| 10 | /** |
| 11 | * struct timbgpio_platform_data - Platform data of the Timberdale GPIO driver |
| 12 | * @gpio_base The number of the first GPIO pin, set to -1 for |
| 13 | * dynamic number allocation. |
| 14 | * @nr_pins Number of pins that is supported by the hardware (1-32) |
| 15 | * @irq_base If IRQ is supported by the hardware, this is the base |
| 16 | * number of IRQ:s. One IRQ per pin will be used. Set to |
| 17 | * -1 if IRQ:s is not supported. |
| 18 | */ |
| 19 | struct timbgpio_platform_data { |
| 20 | int gpio_base; |
| 21 | int nr_pins; |
| 22 | int irq_base; |
| 23 | }; |
| 24 | |
| 25 | #endif |