Revert "Merge commit 'main-jb-2012.08.03-B4' into t114-0806"
[linux-2.6.git] / include / linux / regulator / tps65090-regulator.h
1 /*
2  * include/linux/regulator/tps65090-regulator.h
3  *
4  * Interface for regulator driver for TI TPS65090 PMIC family
5  *
6  * Copyright (C) 2012 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  Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21  *
22  */
23
24 #ifndef __REGULATOR_TPS65090_H
25 #define __REGULATOR_TPS65090_H
26
27 #include <linux/regulator/machine.h>
28
29 #define tps65090_rails(_name) "tps65090_"#_name
30
31 enum {
32         TPS65090_ID_DCDC1,
33         TPS65090_ID_DCDC2,
34         TPS65090_ID_DCDC3,
35         TPS65090_ID_FET1,
36         TPS65090_ID_FET2,
37         TPS65090_ID_FET3,
38         TPS65090_ID_FET4,
39         TPS65090_ID_FET5,
40         TPS65090_ID_FET6,
41         TPS65090_ID_FET7,
42 };
43
44 /*
45  * struct tps65090_regulator_platform_data
46  *
47  * @regulator: The regulator init data.
48  * @init_uV: initial micro volts which need to be set.
49  * @init_enable: Enable or do not enable the rails during initialization.
50  * @init_apply: Init parameter applied or not.
51  * @slew_rate_uV_per_us: Slew rate microvolt per microsec.
52  */
53
54 struct tps65090_regulator_platform_data {
55         struct regulator_init_data regulator;
56         int slew_rate_uV_per_us;
57         unsigned int flags;
58 };
59
60 #endif  /* __REGULATOR_TPS65090_H */