forked from rubenslte/android_kernel_samsung_msm8226
Add device tree support in mpu3050 driver to parse and handle sensor device configuration from DT. 'enable_gpio' is added as the switch control for sensor vlogic power. Change-Id: I45b5c0bf791d96646cd9ecfe4ac1038da97262e2 Signed-off-by: Richard Liu <richardl@codeaurora.org>
33 lines
822 B
C
33 lines
822 B
C
/*
|
|
* Copyright (c) 2012, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
|
|
#ifndef __MPU3050_H__
|
|
#define __MPU3050_H__
|
|
|
|
struct mpu3050_gyro_platform_data {
|
|
int poll_interval;
|
|
int min_interval;
|
|
|
|
int (*init)(void);
|
|
void (*exit)(void);
|
|
int (*power_on)(void);
|
|
int (*power_off)(void);
|
|
|
|
int gpio_int;
|
|
int gpio_en;
|
|
int gpio_fsync;
|
|
};
|
|
|
|
#endif /* __MPU3050_H__ */
|