]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - include/linux/platform_data/gpio-ts5500.h
Merge tag 'mfd-fixes-4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd
[karo-tx-linux.git] / include / linux / platform_data / gpio-ts5500.h
1 /*
2  * GPIO (DIO) header for Technologic Systems TS-5500
3  *
4  * Copyright (c) 2012 Savoir-faire Linux Inc.
5  *      Vivien Didelot <vivien.didelot@savoirfairelinux.com>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  */
11
12 #ifndef _PDATA_GPIO_TS5500_H
13 #define _PDATA_GPIO_TS5500_H
14
15 /**
16  * struct ts5500_dio_platform_data - TS-5500 pin block configuration
17  * @base:       The GPIO base number to use.
18  * @strap:      The only pin connected to an interrupt in a block is input-only.
19  *              If you need a bidirectional line which can trigger an IRQ, you
20  *              may strap it with an in/out pin. This flag indicates this case.
21  */
22 struct ts5500_dio_platform_data {
23         int base;
24         bool strap;
25 };
26
27 #endif /* _PDATA_GPIO_TS5500_H */