]> nv-tegra.nvidia Code Review - linux-2.6.git/blob - arch/arm/mach-tegra/tegra3_tsensor.h
arm: regulator: gpio_switch: enable/disable of rail through board apis
[linux-2.6.git] / arch / arm / mach-tegra / tegra3_tsensor.h
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
22 struct 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
34 void __init tegra3_tsensor_init(struct tegra_tsensor_pmu_data *data);
35 #else
36 static inline void tegra3_tsensor_init(struct tegra_tsensor_pmu_data *data)
37 {}
38 #endif
39
40 #endif