d0f6623e6c35d34c58fc07b353cd07b0aca5dd5d
[linux-2.6.git] / include / linux / regulator / tps65090-regulator.h
1 /*
2  * Regulator driver interface for TI TPS65090 PMIC family
3  *
4  * Copyright (c) 2012, NVIDIA CORPORATION.  All rights reserved.
5
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms and conditions of the GNU General Public License,
8  * version 2, as published by the Free Software Foundation.
9
10  * This program is distributed in the hope it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14
15  * You should have received a copy of the GNU General Public License
16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  */
18
19 #ifndef __REGULATOR_TPS65090_H
20 #define __REGULATOR_TPS65090_H
21
22 #include <linux/regulator/machine.h>
23
24 #define tps65090_rails(_name) "tps65090_"#_name
25
26 enum {
27         TPS65090_REGULATOR_DCDC1,
28         TPS65090_REGULATOR_DCDC2,
29         TPS65090_REGULATOR_DCDC3,
30         TPS65090_REGULATOR_LDO1,
31         TPS65090_REGULATOR_LDO2,
32         TPS65090_REGULATOR_FET1,
33         TPS65090_REGULATOR_FET2,
34         TPS65090_REGULATOR_FET3,
35         TPS65090_REGULATOR_FET4,
36         TPS65090_REGULATOR_FET5,
37         TPS65090_REGULATOR_FET6,
38         TPS65090_REGULATOR_FET7,
39 };
40
41 /*
42  * struct tps65090_regulator_platform_data
43  *
44  * @reg_init_data: The regulator init data.
45  * @id: Regulator ID.
46  * @slew_rate_uV_per_us: Slew rate microvolt per microsec.
47  */
48
49 struct tps65090_regulator_platform_data {
50         int id;
51         struct regulator_init_data *reg_init_data;
52 };
53
54 #endif  /* __REGULATOR_TPS65090_H */