summaryrefslogtreecommitdiff
path: root/drivers/iio/imu-aosp/inv_mpu6515/inv_mpu_dts.h
blob: 151ac74ea05b57276c0b150e0a1989a150119e84 (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
/*
* Copyright (C) 2012 Invensense, Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* 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 _INV_MPU_DTS_H_
#define _INV_MPU_DTS_H_

#include <linux/i2c.h>
#include <linux/mpu.h>

int inv_mpu_power_on(struct mpu_platform_data *pdata);
int inv_mpu_power_off(struct mpu_platform_data *pdata);
int inv_parse_orientation_matrix(struct device *dev, s8 *orient);
int inv_parse_secondary_orientation_matrix(struct device *dev,
							s8 *orient);
int inv_parse_secondary(struct device *dev, struct mpu_platform_data *pdata);
int inv_parse_aux(struct device *dev, struct mpu_platform_data *pdata);
int invensense_mpu_parse_dt(struct device *dev,
			    struct mpu_platform_data *pdata);

#endif  /* #ifndef _INV_MPU_DTS_H_ */