mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 15:11:16 +00:00
power: supply: bq27xxx: Add chip IDs for previously shadowed chips
For the existing features, these chips act like others already ID'd, so they had false but functional IDs. We will be adding features which require correct IDs, so the following IDs are added: BQ2752X, 531, 542, 546, 742, 425, 441, 621 Chip-specific features are now tracked by BQ27XXX_O_* flags in di->opts. No functional changes to the driver. Signed-off-by: Liam Breck <kernel@networkimprov.net> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
This commit is contained in:
parent
9aade6d8f9
commit
3a731c6414
3 changed files with 86 additions and 59 deletions
|
@ -6,6 +6,7 @@ enum bq27xxx_chip {
|
|||
BQ27010, /* bq27010, bq27210 */
|
||||
BQ2750X, /* bq27500 deprecated alias */
|
||||
BQ2751X, /* bq27510, bq27520 deprecated alias */
|
||||
BQ2752X,
|
||||
BQ27500, /* bq27500/1 */
|
||||
BQ27510G1, /* bq27510G1 */
|
||||
BQ27510G2, /* bq27510G2 */
|
||||
|
@ -15,9 +16,16 @@ enum bq27xxx_chip {
|
|||
BQ27520G3, /* bq27520G3 */
|
||||
BQ27520G4, /* bq27520G4 */
|
||||
BQ27530, /* bq27530, bq27531 */
|
||||
BQ27531,
|
||||
BQ27541, /* bq27541, bq27542, bq27546, bq27742 */
|
||||
BQ27542,
|
||||
BQ27546,
|
||||
BQ27742,
|
||||
BQ27545, /* bq27545 */
|
||||
BQ27421, /* bq27421, bq27425, bq27441, bq27621 */
|
||||
BQ27425,
|
||||
BQ27441,
|
||||
BQ27621,
|
||||
};
|
||||
|
||||
struct bq27xxx_device_info;
|
||||
|
@ -47,6 +55,7 @@ struct bq27xxx_device_info {
|
|||
int id;
|
||||
enum bq27xxx_chip chip;
|
||||
bool ram_chip;
|
||||
u32 opts;
|
||||
const char *name;
|
||||
struct bq27xxx_dm_reg *dm_regs;
|
||||
u32 unseal_key;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue