.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Fuel gauge driver for Maxim 17042 / 8966 / 8997 |
---|
3 | 4 | * Note that Maxim 8966 and 8997 are mfd and this is its subdevice. |
---|
4 | 5 | * |
---|
5 | 6 | * Copyright (C) 2011 Samsung Electronics |
---|
6 | 7 | * MyungJoo Ham <myungjoo.ham@samsung.com> |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License as published by |
---|
10 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
11 | | - * (at your option) any later version. |
---|
12 | | - * |
---|
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. |
---|
17 | | - * |
---|
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, MA 02111-1307 USA |
---|
21 | 8 | */ |
---|
22 | 9 | |
---|
23 | 10 | #ifndef __MAX17042_BATTERY_H_ |
---|
.. | .. |
---|
118 | 105 | |
---|
119 | 106 | MAX17042_OCV = 0xEE, |
---|
120 | 107 | |
---|
121 | | - MAX17042_OCVInternal = 0xFB, |
---|
| 108 | + MAX17042_OCVInternal = 0xFB, /* MAX17055 VFOCV */ |
---|
122 | 109 | |
---|
123 | 110 | MAX17042_VFSOC = 0xFF, |
---|
| 111 | +}; |
---|
| 112 | + |
---|
| 113 | +enum max17055_register { |
---|
| 114 | + MAX17055_QRes = 0x0C, |
---|
| 115 | + MAX17055_TTF = 0x20, |
---|
| 116 | + MAX17055_V_empty = 0x3A, |
---|
| 117 | + MAX17055_TIMER = 0x3E, |
---|
| 118 | + MAX17055_USER_MEM = 0x40, |
---|
| 119 | + MAX17055_RGAIN = 0x42, |
---|
| 120 | + |
---|
| 121 | + MAX17055_ConvgCfg = 0x49, |
---|
| 122 | + MAX17055_VFRemCap = 0x4A, |
---|
| 123 | + |
---|
| 124 | + MAX17055_STATUS2 = 0xB0, |
---|
| 125 | + MAX17055_POWER = 0xB1, |
---|
| 126 | + MAX17055_ID = 0xB2, |
---|
| 127 | + MAX17055_AvgPower = 0xB3, |
---|
| 128 | + MAX17055_IAlrtTh = 0xB4, |
---|
| 129 | + MAX17055_TTFCfg = 0xB5, |
---|
| 130 | + MAX17055_CVMixCap = 0xB6, |
---|
| 131 | + MAX17055_CVHalfTime = 0xB7, |
---|
| 132 | + MAX17055_CGTempCo = 0xB8, |
---|
| 133 | + MAX17055_Curve = 0xB9, |
---|
| 134 | + MAX17055_HibCfg = 0xBA, |
---|
| 135 | + MAX17055_Config2 = 0xBB, |
---|
| 136 | + MAX17055_VRipple = 0xBC, |
---|
| 137 | + MAX17055_RippleCfg = 0xBD, |
---|
| 138 | + MAX17055_TimerH = 0xBE, |
---|
| 139 | + |
---|
| 140 | + MAX17055_RSense = 0xD0, |
---|
| 141 | + MAX17055_ScOcvLim = 0xD1, |
---|
| 142 | + |
---|
| 143 | + MAX17055_SOCHold = 0xD3, |
---|
| 144 | + MAX17055_MaxPeakPwr = 0xD4, |
---|
| 145 | + MAX17055_SusPeakPwr = 0xD5, |
---|
| 146 | + MAX17055_PackResistance = 0xD6, |
---|
| 147 | + MAX17055_SysResistance = 0xD7, |
---|
| 148 | + MAX17055_MinSysV = 0xD8, |
---|
| 149 | + MAX17055_MPPCurrent = 0xD9, |
---|
| 150 | + MAX17055_SPPCurrent = 0xDA, |
---|
| 151 | + MAX17055_ModelCfg = 0xDB, |
---|
| 152 | + MAX17055_AtQResidual = 0xDC, |
---|
| 153 | + MAX17055_AtTTE = 0xDD, |
---|
| 154 | + MAX17055_AtAvSOC = 0xDE, |
---|
| 155 | + MAX17055_AtAvCap = 0xDF, |
---|
124 | 156 | }; |
---|
125 | 157 | |
---|
126 | 158 | /* Registers specific to max17047/50 */ |
---|
.. | .. |
---|
138 | 170 | MAXIM_DEVICE_TYPE_MAX17042, |
---|
139 | 171 | MAXIM_DEVICE_TYPE_MAX17047, |
---|
140 | 172 | MAXIM_DEVICE_TYPE_MAX17050, |
---|
| 173 | + MAXIM_DEVICE_TYPE_MAX17055, |
---|
141 | 174 | |
---|
142 | 175 | MAXIM_DEVICE_TYPE_NUM |
---|
143 | 176 | }; |
---|