blob: d6bd1182fa6f191d58e5cd9d78b56e889813d752 (
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
|
/*
* arch/arm/mach-tegra/tegra3_tsensor.h
*
* Tegra tsensor header file
*
* Copyright (c) 2011, NVIDIA Corporation.
*
* 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 __MACH_TEGRA_TEGRA3_TSENSOR_H
#define __MACH_TEGRA_TEGRA3_TSENSOR_H
struct tegra_tsensor_pmu_data {
u8 poweroff_reg_data;
u8 poweroff_reg_addr;
u8 reset_tegra;
u8 controller_type;
u8 i2c_controller_id;
u8 pinmux;
u8 pmu_16bit_ops;
u8 pmu_i2c_addr;
};
#ifdef CONFIG_SENSORS_TEGRA_TSENSOR
void __init tegra3_tsensor_init(struct tegra_tsensor_pmu_data *data);
#else
static inline void tegra3_tsensor_init(struct tegra_tsensor_pmu_data *data)
{}
#endif
#endif
|