Philipp Zabel | 0eb5d5a | 2008-07-11 17:28:06 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Support for TI bq24022 (bqTINY-II) Dual Input (USB/AC Adpater) |
| 3 | * 1-Cell Li-Ion Charger connected via GPIOs. |
| 4 | * |
| 5 | * Copyright (c) 2008 Philipp Zabel |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | * |
| 11 | */ |
| 12 | |
Mark Brown | 93c62da | 2009-01-19 13:37:03 +0000 | [diff] [blame] | 13 | struct regulator_init_data; |
| 14 | |
Philipp Zabel | 0eb5d5a | 2008-07-11 17:28:06 +0200 | [diff] [blame] | 15 | /** |
| 16 | * bq24022_mach_info - platform data for bq24022 |
| 17 | * @gpio_nce: GPIO line connected to the nCE pin, used to enable / disable charging |
| 18 | * @gpio_iset2: GPIO line connected to the ISET2 pin, used to limit charging current to 100 mA / 500 mA |
| 19 | */ |
| 20 | struct bq24022_mach_info { |
| 21 | int gpio_nce; |
| 22 | int gpio_iset2; |
Mark Brown | 93c62da | 2009-01-19 13:37:03 +0000 | [diff] [blame] | 23 | struct regulator_init_data *init_data; |
Philipp Zabel | 0eb5d5a | 2008-07-11 17:28:06 +0200 | [diff] [blame] | 24 | }; |