aboutsummaryrefslogtreecommitdiff
path: root/include/linux/intel_mid_gps.h
blob: 7d50281b10a3a740879934d101e15fe9b8d4ccf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 * intel_mid_gps.h: Intel interface for gps devices
 *
 * (C) Copyright 2013 Intel Corporation
 * Author:
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; version 2
 * of the License.
 */

#ifndef __INTEL_MID_GPS_H__
#define __INTEL_MID_GPS_H__

#define RESET_ON	1
#define RESET_OFF	0
#define ENABLE_ON	1
#define ENABLE_OFF	0

/**
 * struct intel_mid_gps_platform_data - Intel MID GPS platform data
 * @has_reset:		GPS reset GPIO availability
 * @has_enable:		GPS enable GPIO availability
 * @gpio_reset:		GPS reset GPIO number
 * @gpio_enable:	GPS enable GPIO number
 * @gpio_hostwake:	GPS hostwake GPIO number
 * @reset:		GPS reset GPIO current value
 * @enable:		GPS enable GPIO current value
 * @hsu_port:		HSU port number
 */

struct intel_mid_gps_platform_data {
	unsigned int has_reset;
	unsigned int has_enable;
	int gpio_reset;
	int gpio_enable;
	int gpio_hostwake;
	unsigned int reset;
	unsigned int enable;
	unsigned int hsu_port;
};

#endif