diff options
Diffstat (limited to 'include/linux/regulator/ricoh583-regulator.h')
-rw-r--r-- | include/linux/regulator/ricoh583-regulator.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/include/linux/regulator/ricoh583-regulator.h b/include/linux/regulator/ricoh583-regulator.h new file mode 100644 index 00000000000..39fdb9e56e0 --- /dev/null +++ b/include/linux/regulator/ricoh583-regulator.h | |||
@@ -0,0 +1,63 @@ | |||
1 | /* | ||
2 | * linux/regulator/ricoh583-regulator.h | ||
3 | * | ||
4 | * Interface for regulator driver for RICOH583 power management chip. | ||
5 | * | ||
6 | * Copyright (C) 2011 NVIDIA Corporation | ||
7 | * | ||
8 | * Copyright (C) 2011 RICOH COMPANY,LTD | ||
9 | * | ||
10 | * This program is free software; you can redistribute it and/or modify | ||
11 | * it under the terms of the GNU General Public License as published by | ||
12 | * the Free Software Foundation; either version 2 of the License, or | ||
13 | * (at your option) any later version. | ||
14 | * | ||
15 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
16 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
17 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
18 | * more details. | ||
19 | * | ||
20 | * You should have received a copy of the GNU General Public License along | ||
21 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
22 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
23 | * | ||
24 | */ | ||
25 | |||
26 | #ifndef __LINUX_REGULATOR_RICOH583_H | ||
27 | #define __LINUX_REGULATOR_RICOH583_H | ||
28 | |||
29 | #include <linux/regulator/machine.h> | ||
30 | |||
31 | |||
32 | #define ricoh583_rails(_name) "RICOH583_"#_name | ||
33 | |||
34 | /* RICHOH Regulator IDs */ | ||
35 | enum regulator_id { | ||
36 | RICOH583_ID_DC0, | ||
37 | RICOH583_ID_DC1, | ||
38 | RICOH583_ID_DC2, | ||
39 | RICOH583_ID_DC3, | ||
40 | RICOH583_ID_LDO0, | ||
41 | RICOH583_ID_LDO1, | ||
42 | RICOH583_ID_LDO2, | ||
43 | RICOH583_ID_LDO3, | ||
44 | RICOH583_ID_LDO4, | ||
45 | RICOH583_ID_LDO5, | ||
46 | RICOH583_ID_LDO6, | ||
47 | RICOH583_ID_LDO7, | ||
48 | RICOH583_ID_LDO8, | ||
49 | RICOH583_ID_LDO9, | ||
50 | }; | ||
51 | |||
52 | struct ricoh583_regulator_platform_data { | ||
53 | struct regulator_init_data regulator; | ||
54 | int init_uV; | ||
55 | unsigned init_enable:1; | ||
56 | unsigned init_apply:1; | ||
57 | int deepsleep_uV; | ||
58 | int deepsleep_slots; | ||
59 | unsigned long ext_pwr_req; | ||
60 | unsigned long flags; | ||
61 | }; | ||
62 | |||
63 | #endif | ||