blob: 3faf5a6bb13e317e7770227c61e83cb1d2fa481a [file] [log] [blame]
Thomas Gleixner82c29812019-05-28 09:57:05 -07001/* SPDX-License-Identifier: GPL-2.0-only */
Richard Röjfors35570ac2009-12-15 16:46:18 -08002/*
3 * timb_gpio.h timberdale FPGA GPIO driver, platform data definition
4 * Copyright (c) 2009 Intel Corporation
Richard Röjfors35570ac2009-12-15 16:46:18 -08005 */
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 */
19struct timbgpio_platform_data {
20 int gpio_base;
21 int nr_pins;
22 int irq_base;
23};
24
25#endif