2 * da9053 register declarations.
4 * Copyright(c) 2009 Dialog Semiconductor Ltd.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef __DIALOG_PMIC_H__
23 #define __DIALOG_PMIC_H__
26 DA9053_PAGECON0_REG = 0,
117 DA9053_TBATHIGHP_REG,
118 DA9053_TBATHIGHIN_REG,
121 DA9053_ADCIN4RES_REG,
122 DA9053_AUTO4HIGH_REG,
124 DA9053_ADCIN5RES_REG,
125 DA9053_AUTO5HIGH_REG,
127 DA9053_ADCIN6RES_REG,
128 DA9053_AUTO6HIGH_REG,
152 DA9053_PAGECON128_REG,
170 #define DA_BUCKCORE_VBCORE_1_250V 0x1E
172 /* BUCKCORE REGISTER */
173 #define DA9052_BUCKCORE_BCORECONF (1 << 7)
174 #define DA9052_BUCKCORE_BCOREEN (1 << 6)
175 #define DA9052_BUCKCORE_VBCORE 63
177 /* SUPPLY REGISTER */
178 #define DA9052_SUPPLY_VLOCK (1 << 7)
179 #define DA9052_SUPPLY_VMEMSWEN (1 << 6)
180 #define DA9052_SUPPLY_VPERISWEN (1 << 5)
181 #define DA9052_SUPPLY_VLDO3GO (1 << 4)
182 #define DA9052_SUPPLY_VLDO2GO (1 << 3)
183 #define DA9052_SUPPLY_VBMEMGO (1 << 2)
184 #define DA9052_SUPPLY_VBPROGO (1 << 1)
185 #define DA9052_SUPPLY_VBCOREGO (1 << 0)
187 #endif /* __DIALOG_PMIC_H__ */