2 * Copyright (C) 2011 Samsung Electronics
3 * Lukasz Majewski <l.majewski@samsung.com>
5 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef __MAX8998_PMIC_H_
9 #define __MAX8998_PMIC_H_
11 /* MAX 8998 registers */
27 MAX8998_REG_LDO_ACTIVE_DISCHARGE1,
28 MAX8998_REG_LDO_ACTIVE_DISCHARGE2,
29 MAX8998_REG_BUCK_ACTIVE_DISCHARGE3,
34 MAX8998_REG_BUCK1_VOLTAGE1,
35 MAX8998_REG_BUCK1_VOLTAGE2,
36 MAX8998_REG_BUCK1_VOLTAGE3,
37 MAX8998_REG_BUCK1_VOLTAGE4,
38 MAX8998_REG_BUCK2_VOLTAGE1,
39 MAX8998_REG_BUCK2_VOLTAGE2,
42 MAX8998_REG_LDO2_LDO3,
47 MAX8998_REG_LDO8_LDO9,
48 MAX8998_REG_LDO10_LDO11,
61 #define MAX8998_LDO3 (1 << 2)
62 #define MAX8998_LDO4 (1 << 1)
63 #define MAX8998_LDO7 (1 << 6)
64 #define MAX8998_LDO8 (1 << 5)
65 #define MAX8998_LDO17 (1 << 4)
66 #define MAX8998_SAFEOUT1 (1 << 4)
68 #define MAX8998_I2C_ADDR (0xCC >> 1)
70 enum { LDO_OFF, LDO_ON };
72 #endif /* __MAX8998_PMIC_H_ */