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 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 26