1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2015 Samsung Electronics Co., Ltd
4 * http://www.samsung.com
7 #ifndef __LINUX_MFD_S2MPS15_H
8 #define __LINUX_MFD_S2MPS15_H
10 /* S2MPS15 registers */
97 /* S2MPS15 regulator ids */
98 enum s2mps15_regulators {
137 S2MPS15_REGULATOR_MAX,
140 #define S2MPS15_LDO_VSEL_MASK (0x3F)
141 #define S2MPS15_BUCK_VSEL_MASK (0xFF)
143 #define S2MPS15_ENABLE_SHIFT (0x06)
144 #define S2MPS15_ENABLE_MASK (0x03 << S2MPS15_ENABLE_SHIFT)
146 #define S2MPS15_LDO_N_VOLTAGES (S2MPS15_LDO_VSEL_MASK + 1)
147 #define S2MPS15_BUCK_N_VOLTAGES (S2MPS15_BUCK_VSEL_MASK + 1)
149 #endif /* __LINUX_MFD_S2MPS15_H */