Merge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36
[firefly-linux-kernel-4.4.55.git] / include / linux / gps-gpio-brcm4750.h
1 /*
2  * Copyright (C) 2010 Motorola, Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
16  * 02111-1307, USA
17  */
18
19 #ifndef _GPS_GPIO_BRCM4750_H_
20 #define _GPS_GPIO_BRCM4750_H_
21
22 #include <linux/ioctl.h>
23
24 #define GPS_GPIO_DRIVER_NAME "gps_brcm4750"
25
26 #define GPS_GPIO_IOCTL_BASE     'w'
27
28 #define IOC_GPS_GPIO_RESET       _IOW(GPS_GPIO_IOCTL_BASE, 0x0, int)
29 #define IOC_GPS_GPIO_STANDBY     _IOW(GPS_GPIO_IOCTL_BASE, 0x1, int)
30
31 #ifdef __KERNEL__
32 struct gps_gpio_brcm4750_platform_data {
33       void (*set_reset_gpio)(unsigned int gpio_val);
34       void (*set_standby_gpio)(unsigned int gpio_val);
35       void (*free_gpio)(void);
36 } __attribute__ ((packed));
37
38 #endif  /* __KERNEL__ */
39 #endif  /* _GPS_GPIO_BRCM4750_H_ */