2 * Copyright (C) 2010 Motorola, Inc.
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.
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.
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
19 #ifndef _GPS_GPIO_BRCM4750_H_
20 #define _GPS_GPIO_BRCM4750_H_
22 #include <linux/ioctl.h>
24 #define GPS_GPIO_DRIVER_NAME "gps_brcm4750"
26 #define GPS_GPIO_IOCTL_BASE 'w'
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)
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));
38 #endif /* __KERNEL__ */
39 #endif /* _GPS_GPIO_BRCM4750_H_ */