Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gpio.h
Go to the documentation of this file.
1 /*
2  * gpio.h -- GPIO driver for NXP PCF50633
3  *
4  * (C) 2006-2008 by Openmoko, Inc.
5  * All rights reserved.
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License as published by the
9  * Free Software Foundation; either version 2 of the License, or (at your
10  * option) any later version.
11  */
12 
13 #ifndef __LINUX_MFD_PCF50633_GPIO_H
14 #define __LINUX_MFD_PCF50633_GPIO_H
15 
17 
18 #define PCF50633_GPIO1 1
19 #define PCF50633_GPIO2 2
20 #define PCF50633_GPIO3 3
21 #define PCF50633_GPO 4
22 
23 #define PCF50633_REG_GPIO1CFG 0x14
24 #define PCF50633_REG_GPIO2CFG 0x15
25 #define PCF50633_REG_GPIO3CFG 0x16
26 #define PCF50633_REG_GPOCFG 0x17
27 
28 #define PCF50633_GPOCFG_GPOSEL_MASK 0x07
29 
40 };
41 
42 int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val);
43 u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio);
44 
45 int pcf50633_gpio_invert_set(struct pcf50633 *, int gpio, int invert);
46 int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio);
47 
49  int gpio, int regulator, int on);
50 #endif /* __LINUX_MFD_PCF50633_GPIO_H */
51 
52