regulator: TI bq24022 Li-Ion Charger driver
This adds a regulator driver for the TI bq24022 Single-Chip Li-Ion Charger with its nCE and ISET2 pins connected to GPIOs. Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com> Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
This commit is contained in:

committed by
Liam Girdwood

parent
e53e86c7ae
commit
0eb5d5ab3e
21
include/linux/regulator/bq24022.h
Normal file
21
include/linux/regulator/bq24022.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Support for TI bq24022 (bqTINY-II) Dual Input (USB/AC Adpater)
|
||||
* 1-Cell Li-Ion Charger connected via GPIOs.
|
||||
*
|
||||
* Copyright (c) 2008 Philipp Zabel
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* bq24022_mach_info - platform data for bq24022
|
||||
* @gpio_nce: GPIO line connected to the nCE pin, used to enable / disable charging
|
||||
* @gpio_iset2: GPIO line connected to the ISET2 pin, used to limit charging current to 100 mA / 500 mA
|
||||
*/
|
||||
struct bq24022_mach_info {
|
||||
int gpio_nce;
|
||||
int gpio_iset2;
|
||||
};
|
Reference in New Issue
Block a user