2 * Copyright (c) 2015 Samsung Electronics Co., Ltd
3 * http://www.samsung.com
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #ifndef __LINUX_MFD_S2MPS15_H
17 #define __LINUX_MFD_S2MPS15_H
19 /* S2MPS15 registers */
100 S2MPS15_REG_LDODSCH1
,
101 S2MPS15_REG_LDODSCH2
,
102 S2MPS15_REG_LDODSCH3
,
103 S2MPS15_REG_LDODSCH4
,
106 /* S2MPS15 regulator ids */
107 enum s2mps15_regulators
{
146 S2MPS15_REGULATOR_MAX
,
149 #define S2MPS15_LDO_VSEL_MASK (0x3F)
150 #define S2MPS15_BUCK_VSEL_MASK (0xFF)
152 #define S2MPS15_ENABLE_SHIFT (0x06)
153 #define S2MPS15_ENABLE_MASK (0x03 << S2MPS15_ENABLE_SHIFT)
155 #define S2MPS15_LDO_N_VOLTAGES (S2MPS15_LDO_VSEL_MASK + 1)
156 #define S2MPS15_BUCK_N_VOLTAGES (S2MPS15_BUCK_VSEL_MASK + 1)
158 #endif /* __LINUX_MFD_S2MPS15_H */