rk3288:pmic:act8846&syr82x:modify some warnings
[firefly-linux-kernel-4.4.55.git] / include / linux / regulator / rk2818_lp8725.h
1 /* include/linux/regulator/rk2818_lp8725.h
2  *
3  * Copyright (C) 2010 ROCKCHIP, Inc.
4  *
5  * This software is licensed under the terms of the GNU General Public
6  * License version 2, as published by the Free Software Foundation, and
7  * may be copied, distributed, and modified under those terms.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  */
15 #ifndef __LINUX_REGULATOR_LP8725_H
16 #define __LINUX_REGULATOR_LP8725_H
17
18 #include <linux/regulator/machine.h>
19
20 #define LP8725_LDO1  0
21 #define LP8725_LDO2  1
22 #define LP8725_LDO3  2
23 #define LP8725_LDO4  3
24 #define LP8725_LDO5  4
25
26 #define LP8725_LILO1 5
27 #define LP8725_LILO2 6
28
29 #define LP8725_DCDC1 7
30 #define LP8725_DCDC2 8
31 #define LP8725_DCDC1_V2 9
32 #define LP8725_DCDC2_V2 10
33
34 #define LP8725_NUM_REGULATORS 11
35
36 struct lp8725_regulator_subdev {
37         int id;
38         struct regulator_init_data *initdata;
39 };
40
41 struct lp8725_platform_data {
42         int num_regulators;
43         struct lp8725_regulator_subdev *regulators;
44 };
45 extern int rk2818_lp8725_pm_control(void);
46 #endif