aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/tegra3_tsensor.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/tegra3_tsensor.h')
-rw-r--r--arch/arm/mach-tegra/tegra3_tsensor.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/tegra3_tsensor.h b/arch/arm/mach-tegra/tegra3_tsensor.h
new file mode 100644
index 00000000000..d6bd1182fa6
--- /dev/null
+++ b/arch/arm/mach-tegra/tegra3_tsensor.h
@@ -0,0 +1,40 @@
1/*
2 * arch/arm/mach-tegra/tegra3_tsensor.h
3 *
4 * Tegra tsensor header file
5 *
6 * Copyright (c) 2011, NVIDIA Corporation.
7 *
8 * This software is licensed under the terms of the GNU General Public
9 * License version 2, as published by the Free Software Foundation, and
10 * may be copied, distributed, and modified under those terms.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 */
18
19#ifndef __MACH_TEGRA_TEGRA3_TSENSOR_H
20#define __MACH_TEGRA_TEGRA3_TSENSOR_H
21
22struct tegra_tsensor_pmu_data {
23 u8 poweroff_reg_data;
24 u8 poweroff_reg_addr;
25 u8 reset_tegra;
26 u8 controller_type;
27 u8 i2c_controller_id;
28 u8 pinmux;
29 u8 pmu_16bit_ops;
30 u8 pmu_i2c_addr;
31};
32
33#ifdef CONFIG_SENSORS_TEGRA_TSENSOR
34void __init tegra3_tsensor_init(struct tegra_tsensor_pmu_data *data);
35#else
36static inline void tegra3_tsensor_init(struct tegra_tsensor_pmu_data *data)
37{}
38#endif
39
40#endif