| /* SPDX-License-Identifier: GPL-2.0+ */ |
| * Copyright (C) 2012 Samsung Electronics |
| * Lukasz Majewski <l.majewski@samsung.com> |
| /* MAX 17042 registers */ |
| MAX17042_AVG_CURRENT = 0x0B, |
| MAX17042_DESIGN_CAP = 0x18, |
| MAX17042_AVG_VCELL = 0x19, |
| MAX17042_LEARNCFG = 0x28, |
| MAX17042_FILTERCFG = 0x29, |
| MAX17042_RELAXCFG = 0x2A, |
| MAX17042_MLOCKReg1 = 0x62, |
| MAX17042_MLOCKReg2 = 0x63, |
| #define MAX17042_POR (1 << 1) |
| #define MODEL_UNLOCK1 0x0059 |
| #define MODEL_UNLOCK2 0x00c4 |
| #define MODEL_LOCK1 0x0000 |
| #define MODEL_LOCK2 0x0000 |
| #define MAX17042_I2C_ADDR (0x6C >> 1) |
| int power_fg_init(unsigned char bus); |
| #endif /* __MAX17042_FG_H_ */ |