blob: 20ea3f2788cb95ed8e67f56777940fa3fc6cc147 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef __ASM_ARCH_OMAP_GPIO_SWITCH_H
13#define __ASM_ARCH_OMAP_GPIO_SWITCH_H
Ben Cheng4b29af02012-03-07 16:14:53 -080014
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080015#include <linux/types.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080016
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017#define OMAP_GPIO_SWITCH_TYPE_COVER 0x0000
18#define OMAP_GPIO_SWITCH_TYPE_CONNECTION 0x0001
19#define OMAP_GPIO_SWITCH_TYPE_ACTIVITY 0x0002
20#define OMAP_GPIO_SWITCH_FLAG_INVERTED 0x0001
21#define OMAP_GPIO_SWITCH_FLAG_OUTPUT 0x0002
Ben Cheng4b29af02012-03-07 16:14:53 -080022
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080023struct omap_gpio_switch {
24 const char *name;
25 s16 gpio;
26 unsigned flags:4;
27 unsigned type:4;
Ben Cheng4b29af02012-03-07 16:14:53 -080028
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029 u16 debounce_rising;
Ben Cheng4b29af02012-03-07 16:14:53 -080030
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080031 u16 debounce_falling;
Ben Cheng4b29af02012-03-07 16:14:53 -080032
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080033 void (* notify)(void *data, int state);
34 void *notify_data;
35};
Ben Cheng4b29af02012-03-07 16:14:53 -080036
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080037#endif