1 /* s5m87xx.h
2  *
3  * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
4  *		http://www.samsung.com
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9 */
10 
11 #ifndef __LINUX_MFD_S5M_PMIC_H
12 #define __LINUX_MFD_S5M_PMIC_H
13 
14 #include <linux/regulator/machine.h>
15 
16 /* S5M8767 regulator ids */
17 enum s5m8767_regulators {
18 	S5M8767_LDO1,
19 	S5M8767_LDO2,
20 	S5M8767_LDO3,
21 	S5M8767_LDO4,
22 	S5M8767_LDO5,
23 	S5M8767_LDO6,
24 	S5M8767_LDO7,
25 	S5M8767_LDO8,
26 	S5M8767_LDO9,
27 	S5M8767_LDO10,
28 	S5M8767_LDO11,
29 	S5M8767_LDO12,
30 	S5M8767_LDO13,
31 	S5M8767_LDO14,
32 	S5M8767_LDO15,
33 	S5M8767_LDO16,
34 	S5M8767_LDO17,
35 	S5M8767_LDO18,
36 	S5M8767_LDO19,
37 	S5M8767_LDO20,
38 	S5M8767_LDO21,
39 	S5M8767_LDO22,
40 	S5M8767_LDO23,
41 	S5M8767_LDO24,
42 	S5M8767_LDO25,
43 	S5M8767_LDO26,
44 	S5M8767_LDO27,
45 	S5M8767_LDO28,
46 	S5M8767_BUCK1,
47 	S5M8767_BUCK2,
48 	S5M8767_BUCK3,
49 	S5M8767_BUCK4,
50 	S5M8767_BUCK5,
51 	S5M8767_BUCK6,
52 	S5M8767_BUCK7,
53 	S5M8767_BUCK8,
54 	S5M8767_BUCK9,
55 	S5M8767_AP_EN32KHZ,
56 	S5M8767_CP_EN32KHZ,
57 
58 	S5M8767_REG_MAX,
59 };
60 
61 /* S5M8763 regulator ids */
62 enum s5m8763_regulators {
63 	S5M8763_LDO1,
64 	S5M8763_LDO2,
65 	S5M8763_LDO3,
66 	S5M8763_LDO4,
67 	S5M8763_LDO5,
68 	S5M8763_LDO6,
69 	S5M8763_LDO7,
70 	S5M8763_LDO8,
71 	S5M8763_LDO9,
72 	S5M8763_LDO10,
73 	S5M8763_LDO11,
74 	S5M8763_LDO12,
75 	S5M8763_LDO13,
76 	S5M8763_LDO14,
77 	S5M8763_LDO15,
78 	S5M8763_LDO16,
79 	S5M8763_BUCK1,
80 	S5M8763_BUCK2,
81 	S5M8763_BUCK3,
82 	S5M8763_BUCK4,
83 	S5M8763_AP_EN32KHZ,
84 	S5M8763_CP_EN32KHZ,
85 	S5M8763_ENCHGVI,
86 	S5M8763_ESAFEUSB1,
87 	S5M8763_ESAFEUSB2,
88 };
89 
90 /**
91  * s5m87xx_regulator_data - regulator data
92  * @id: regulator id
93  * @initdata: regulator init data (contraints, supplies, ...)
94  */
95 struct s5m_regulator_data {
96 	int				id;
97 	struct regulator_init_data	*initdata;
98 };
99 
100 #endif /*  __LINUX_MFD_S5M_PMIC_H */
101