4 * Copyright (c) 2014 Samsung Electronics Co., Ltd
5 * http://www.samsung.com
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
19 #ifndef __LINUX_MFD_S2MPS13_H
20 #define __LINUX_MFD_S2MPS13_H
22 /* S2MPS13 registers */
72 S2MPS13_REG_BUCK_RAMP1
,
73 S2MPS13_REG_BUCK_RAMP2
,
118 S2MPS13_REG_LDODSCH1
,
119 S2MPS13_REG_LDODSCH2
,
120 S2MPS13_REG_LDODSCH3
,
121 S2MPS13_REG_LDODSCH4
,
122 S2MPS13_REG_LDODSCH5
,
126 enum s2mps13_regulators
{
178 S2MPS13_REGULATOR_MAX
,
182 * Default ramp delay in uv/us. Datasheet says that ramp delay can be
183 * controlled however it does not specify which register is used for that.
184 * Let's assume that default value will be set.
186 #define S2MPS13_BUCK_RAMP_DELAY 12500
187 #define S2MPS13_REG_WRSTBI_MASK BIT(5)
189 #endif /* __LINUX_MFD_S2MPS13_H */