| /* |
| * 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 |
| #define MCU_REQ_ON 1 |
| #define MCU_REQ_OFF 0 |
| /** |
| * struct intel_mid_gps_platform_data - Intel MID GPS platform data |
| * @gpio_reset: GPS reset GPIO number |
| * @gpio_enable: GPS enable GPIO number |
| * @gpio_hostwake: GPS hostwake GPIO number |
| * @gpio_mcu_req: GPS mcu_req GPIO number |
| * @gpio_mcu_req_resp: GPS mcu_req_resp 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 { |
| int gpio_reset; |
| int gpio_enable; |
| int gpio_mcu_req; |
| int gpio_mcu_req_resp; |
| unsigned int reset; |
| unsigned int enable; |
| unsigned int hsu_port; |
| }; |
| |
| #endif |