2 * Copyright (C) 2011 Samsung Electronics
3 * Lukasz Majewski <l.majewski@samsung.com>
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 #ifndef __MAX8998_PMIC_H_
25 #define __MAX8998_PMIC_H_
27 /* MAX 8998 registers */
43 MAX8998_REG_LDO_ACTIVE_DISCHARGE1,
44 MAX8998_REG_LDO_ACTIVE_DISCHARGE2,
45 MAX8998_REG_BUCK_ACTIVE_DISCHARGE3,
50 MAX8998_REG_BUCK1_VOLTAGE1,
51 MAX8998_REG_BUCK1_VOLTAGE2,
52 MAX8998_REG_BUCK1_VOLTAGE3,
53 MAX8998_REG_BUCK1_VOLTAGE4,
54 MAX8998_REG_BUCK2_VOLTAGE1,
55 MAX8998_REG_BUCK2_VOLTAGE2,
58 MAX8998_REG_LDO2_LDO3,
63 MAX8998_REG_LDO8_LDO9,
64 MAX8998_REG_LDO10_LDO11,
77 #define MAX8998_LDO3 (1 << 2)
78 #define MAX8998_LDO4 (1 << 1)
79 #define MAX8998_LDO7 (1 << 6)
80 #define MAX8998_LDO8 (1 << 5)
81 #define MAX8998_LDO17 (1 << 4)
82 #define MAX8998_SAFEOUT1 (1 << 4)
84 #define MAX8998_I2C_ADDR (0xCC >> 1)
86 enum { LDO_OFF, LDO_ON };
88 #endif /* __MAX8998_PMIC_H_ */