1 /* include/linux/regulator/rk2818_lp8725.h
3 * Copyright (C) 2010 ROCKCHIP, Inc.
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.
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.
15 #ifndef __LINUX_REGULATOR_LP8725_H
16 #define __LINUX_REGULATOR_LP8725_H
18 #include <linux/regulator/machine.h>
26 #define LP8725_LILO1 5
27 #define LP8725_LILO2 6
29 #define LP8725_DCDC1 7
30 #define LP8725_DCDC2 8
31 #define LP8725_DCDC1_V2 9
32 #define LP8725_DCDC2_V2 10
34 #define LP8725_NUM_REGULATORS 11
36 struct lp8725_regulator_subdev {
38 struct regulator_init_data *initdata;
41 struct lp8725_platform_data {
43 struct lp8725_regulator_subdev *regulators;
45 extern int rk2818_lp8725_pm_control(void);