Merge remote-tracking branch 'origin/upstream/linux-linaro-lsk-v3.10-android+android...
[firefly-linux-kernel-4.4.55.git] / include / linux / regulator / act8846.h
1 /* include/linux/regulator/act8846.h
2  *
3  * Copyright (C) 2011 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_act8846_H
16 #define __LINUX_REGULATOR_act8846_H
17
18 #include <linux/regulator/machine.h>
19
20 //#define ACT8846_START 30
21
22 #define ACT8846_DCDC1  0                     //(0+ACT8846_START) 
23
24 #define ACT8846_LDO1 4                //(4+ACT8846_START)
25
26
27 #define act8846_NUM_REGULATORS 13
28 struct act8846;
29
30 int act8846_device_shutdown(void);
31
32 struct act8846_regulator_subdev {
33         int id;
34         struct regulator_init_data *initdata;
35 };
36
37 struct act8846_platform_data {
38         int num_regulators;
39         int (*set_init)(struct act8846 *act8846);
40         struct act8846_regulator_subdev *regulators;
41 };
42
43 #endif
44