Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 1 | /* include/linux/timed_gpio.h |
| 2 | * |
| 3 | * Copyright (C) 2008 Google, Inc. |
| 4 | * |
| 5 | * This software is licensed under the terms of the GNU General Public |
| 6 | * License version 2, as published by the Free Software Foundation, and |
| 7 | * may be copied, distributed, and modified under those terms. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | */ |
| 15 | |
| 16 | #ifndef _LINUX_TIMED_GPIO_H |
| 17 | #define _LINUX_TIMED_GPIO_H |
| 18 | |
| 19 | #define TIMED_GPIO_NAME "timed-gpio" |
| 20 | |
| 21 | struct timed_gpio { |
| 22 | const char *name; |
Johannes Thumshirn | 51be392 | 2012-02-25 15:51:13 +0100 | [diff] [blame] | 23 | unsigned gpio; |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 24 | int max_timeout; |
Johannes Thumshirn | 51be392 | 2012-02-25 15:51:13 +0100 | [diff] [blame] | 25 | u8 active_low; |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 26 | }; |
| 27 | |
| 28 | struct timed_gpio_platform_data { |
Johannes Thumshirn | 51be392 | 2012-02-25 15:51:13 +0100 | [diff] [blame] | 29 | int num_gpios; |
Greg Kroah-Hartman | 355b050 | 2011-11-30 20:18:14 +0900 | [diff] [blame] | 30 | struct timed_gpio *gpios; |
| 31 | }; |
| 32 | |
| 33 | #endif |