Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | * |
| 12 | */ |
| 13 | #ifndef __ISL9519_H__ |
| 14 | #define __ISL9519_H__ |
| 15 | |
| 16 | /** |
| 17 | * struct isl_platform_data |
| 18 | * @chgcurrent: max current the islchip can draw |
| 19 | * @valid_irq: interrupt for insertion/removal notification |
| 20 | * @valid_n_gpio: gpio to debounce insertion/removal |
| 21 | * @valid_config: machine specific func to configure gpio line |
| 22 | * @max_system_voltage: the max voltage isl should charge battery to |
| 23 | * @min_system_voltage: the min voltage isl should trkl charge the |
| 24 | * battery |
| 25 | * @term_current: the batt current when isl charging should stop |
| 26 | * @input_current: the max current isl should pull from the adapter |
| 27 | */ |
| 28 | struct isl_platform_data { |
| 29 | int chgcurrent; |
| 30 | int valid_n_gpio; |
| 31 | int (*chg_detection_config) (void); |
| 32 | int max_system_voltage; |
| 33 | int min_system_voltage; |
| 34 | int term_current; |
| 35 | int input_current; |
| 36 | }; |
| 37 | |
| 38 | #endif |