blob: a0e15f8be3f717e5aa8c6bb462ef3710b75bbba3 [file] [log] [blame]
Mike Lockwood653d1292008-12-23 10:28:02 -05001/* include/linux/timed_gpio.h
Mike Lockwood99f41132008-12-19 18:18:16 -08002 *
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
Mike Lockwood653d1292008-12-23 10:28:02 -050016#ifndef _LINUX_TIMED_GPIO_H
17#define _LINUX_TIMED_GPIO_H
Mike Lockwood99f41132008-12-19 18:18:16 -080018
Mike Lockwood241e1282009-05-04 15:48:00 -070019#define TIMED_GPIO_NAME "timed-gpio"
20
Mike Lockwood99f41132008-12-19 18:18:16 -080021struct timed_gpio {
22 const char *name;
23 unsigned gpio;
Mike Lockwood241e1282009-05-04 15:48:00 -070024 int max_timeout;
Mike Lockwood99f41132008-12-19 18:18:16 -080025 u8 active_low;
26};
27
28struct timed_gpio_platform_data {
29 int num_gpios;
30 struct timed_gpio *gpios;
31};
32
33#endif