2 * linux/regulator/ricoh619-regulator.h
4 * Regulator driver for RICOH619 power management chip.
6 * Copyright (C) 2012-2013 RICOH COMPANY,LTD
9 * Copyright (C) 2011 NVIDIA Corporation
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful, but WITHOUT
17 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <http://www.gnu.org/licenses/>.
26 #ifndef __LINUX_REGULATOR_RICOH619_H
27 #define __LINUX_REGULATOR_RICOH619_H
29 #include <linux/regulator/machine.h>
30 #include <linux/regulator/driver.h>
32 #define ricoh619_rails(_name) "RICOH619_"#_name
34 /* RICHOH Regulator IDs */
55 struct ricoh619_regulator_platform_data {
56 struct regulator_init_data regulator;
58 unsigned init_enable:1;
59 unsigned init_apply:1;
62 unsigned long ext_pwr_req;
66 extern int ricoh619_regulator_enable_eco_mode(struct regulator_dev *rdev);
67 extern int ricoh619_regulator_disable_eco_mode(struct regulator_dev *rdev);
68 extern int ricoh619_regulator_enable_eco_slp_mode(struct regulator_dev *rdev);
69 extern int ricoh619_regulator_disable_eco_slp_mode(struct regulator_dev *rdev);