aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regulator/tps6236x-regulator.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
commitfcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch)
treea57612d1888735a2ec7972891b68c1ac5ec8faea /include/linux/regulator/tps6236x-regulator.h
parent8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff)
Added missing tegra files.HEADmaster
Diffstat (limited to 'include/linux/regulator/tps6236x-regulator.h')
-rw-r--r--include/linux/regulator/tps6236x-regulator.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/include/linux/regulator/tps6236x-regulator.h b/include/linux/regulator/tps6236x-regulator.h
new file mode 100644
index 00000000000..7e8a3752966
--- /dev/null
+++ b/include/linux/regulator/tps6236x-regulator.h
@@ -0,0 +1,54 @@
1/*
2 * include/linux/regulator/tps6236x.h
3 *
4 * Interface for regulator driver for TI TPS6236x Processor core supply
5 *
6 * Copyright (C) 2011 NVIDIA Corporation
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 *
22 */
23
24#ifndef __REGULATOR_TPS6236X_H
25#define __REGULATOR_TPS6236X_H
26
27#include <linux/regulator/machine.h>
28
29/*
30 * struct tps6236x_regulator_platform_data - tps6236x regulator platform data.
31 *
32 * @reg_init_data: The regulator init data.
33 * @internal_pd_enable: internal pull down enable or not.
34 * @vsel: Select the voltage id register.
35 * @init_uV: initial micro volts which need to be set.
36 * @init_enable: Enable or do not enable the rails during initialization.
37 * @init_apply: Init parameter applied or not.
38 * @is_force_pwm: Enable force pwm or not. If not then PFM mode configuration
39 * will be used.
40 * @enable_discharge: Enable discharge the output capacitor via a typ. 300Ohm
41 * path
42 */
43
44struct tps6236x_regulator_platform_data {
45 struct regulator_init_data reg_init_data;
46 int internal_pd_enable;
47 int vsel;
48 int init_uV;
49 unsigned init_apply:1;
50 bool is_force_pwm;
51 bool enable_discharge;
52};
53
54#endif /* __REGULATOR_TPS6236X_H */