1 /* include/linux/regulator/act8846.h
3 * Copyright (C) 2011 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_act8846_H
16 #define __LINUX_REGULATOR_act8846_H
18 #include <linux/regulator/machine.h>
20 //#define ACT8846_START 30
22 #define ACT8846_DCDC1 0 //(0+ACT8846_START)
24 #define ACT8846_LDO1 4 //(4+ACT8846_START)
27 #define act8846_NUM_REGULATORS 13
30 int act8846_device_shutdown(void);
32 struct act8846_regulator_subdev {
34 struct regulator_init_data *initdata;
37 struct act8846_platform_data {
39 int (*set_init)(struct act8846 *act8846);
40 struct act8846_regulator_subdev *regulators;