blob: 03d06e8a531220744959113b3213373ef7d42528 [file] [log] [blame]
Łukasz Majewskibad888c2011-10-03 19:45:50 +00001/*
2 * Copyright (C) 2011 Samsung Electronics
3 * Lukasz Majewski <l.majewski@samsung.com>
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Łukasz Majewskibad888c2011-10-03 19:45:50 +00006 */
7
8#ifndef __MAX8998_PMIC_H_
9#define __MAX8998_PMIC_H_
10
11/* MAX 8998 registers */
12enum {
13 MAX8998_REG_IRQ1,
14 MAX8998_REG_IRQ2,
15 MAX8998_REG_IRQ3,
16 MAX8998_REG_IRQ4,
17 MAX8998_REG_IRQM1,
18 MAX8998_REG_IRQM2,
19 MAX8998_REG_IRQM3,
20 MAX8998_REG_IRQM4,
21 MAX8998_REG_STATUS1,
22 MAX8998_REG_STATUS2,
23 MAX8998_REG_STATUSM1,
24 MAX8998_REG_STATUSM2,
25 MAX8998_REG_CHGR1,
26 MAX8998_REG_CHGR2,
27 MAX8998_REG_LDO_ACTIVE_DISCHARGE1,
28 MAX8998_REG_LDO_ACTIVE_DISCHARGE2,
29 MAX8998_REG_BUCK_ACTIVE_DISCHARGE3,
30 MAX8998_REG_ONOFF1,
31 MAX8998_REG_ONOFF2,
32 MAX8998_REG_ONOFF3,
33 MAX8998_REG_ONOFF4,
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,
40 MAX8998_REG_BUCK3,
41 MAX8998_REG_BUCK4,
42 MAX8998_REG_LDO2_LDO3,
43 MAX8998_REG_LDO4,
44 MAX8998_REG_LDO5,
45 MAX8998_REG_LDO6,
46 MAX8998_REG_LDO7,
47 MAX8998_REG_LDO8_LDO9,
48 MAX8998_REG_LDO10_LDO11,
49 MAX8998_REG_LDO12,
50 MAX8998_REG_LDO13,
51 MAX8998_REG_LDO14,
52 MAX8998_REG_LDO15,
53 MAX8998_REG_LDO16,
54 MAX8998_REG_LDO17,
55 MAX8998_REG_BKCHR,
56 MAX8998_REG_LBCNFG1,
57 MAX8998_REG_LBCNFG2,
58 PMIC_NUM_OF_REGS,
59};
60
61#define MAX8998_LDO3 (1 << 2)
Łukasz Majewski61f8b402012-03-26 21:53:48 +000062#define MAX8998_LDO4 (1 << 1)
Piotr Wilczek6f10f0a2012-10-19 05:34:04 +000063#define MAX8998_LDO7 (1 << 6)
Łukasz Majewskibad888c2011-10-03 19:45:50 +000064#define MAX8998_LDO8 (1 << 5)
Piotr Wilczek6f10f0a2012-10-19 05:34:04 +000065#define MAX8998_LDO17 (1 << 4)
Lukasz Majewskibf731262011-12-15 10:32:12 +010066#define MAX8998_SAFEOUT1 (1 << 4)
Łukasz Majewskibad888c2011-10-03 19:45:50 +000067
68#define MAX8998_I2C_ADDR (0xCC >> 1)
69
70enum { LDO_OFF, LDO_ON };
71
72#endif /* __MAX8998_PMIC_H_ */