Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * timb_gpio.h timberdale FPGA GPIO driver, platform data definition
0004  * Copyright (c) 2009 Intel Corporation
0005  */
0006 
0007 #ifndef _LINUX_TIMB_GPIO_H
0008 #define _LINUX_TIMB_GPIO_H
0009 
0010 /**
0011  * struct timbgpio_platform_data - Platform data of the Timberdale GPIO driver
0012  * @gpio_base       The number of the first GPIO pin, set to -1 for
0013  *          dynamic number allocation.
0014  * @nr_pins     Number of pins that is supported by the hardware (1-32)
0015  * @irq_base        If IRQ is supported by the hardware, this is the base
0016  *          number of IRQ:s. One IRQ per pin will be used. Set to
0017  *          -1 if IRQ:s is not supported.
0018  */
0019 struct timbgpio_platform_data {
0020     int gpio_base;
0021     int nr_pins;
0022     int irq_base;
0023 };
0024 
0025 #endif