.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2016, Prodys S.L. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License as published by |
---|
6 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
7 | | - * (at your option) any later version. |
---|
8 | 4 | * |
---|
9 | 5 | * This adds support for sbs-charger compilant chips as defined here: |
---|
10 | 6 | * http://sbs-forum.org/specs/sbc110.pdf |
---|
.. | .. |
---|
29 | 25 | #define SBS_CHARGER_REG_STATUS 0x13 |
---|
30 | 26 | #define SBS_CHARGER_REG_ALARM_WARNING 0x16 |
---|
31 | 27 | |
---|
32 | | -#define SBS_CHARGER_STATUS_CHARGE_INHIBITED BIT(1) |
---|
| 28 | +#define SBS_CHARGER_STATUS_CHARGE_INHIBITED BIT(0) |
---|
33 | 29 | #define SBS_CHARGER_STATUS_RES_COLD BIT(9) |
---|
34 | 30 | #define SBS_CHARGER_STATUS_RES_HOT BIT(10) |
---|
35 | 31 | #define SBS_CHARGER_STATUS_BATTERY_PRESENT BIT(14) |
---|