Amir Samuelov | caaa8f0 | 2012-10-25 11:11:57 +0200 | [diff] [blame] | 1 | /* Copyright (c) 2012 The Linux Foundation. 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 __SMB350_H__ |
| 14 | #define __SMB350_H__ |
| 15 | |
| 16 | #define SMB350_NAME "smb350" |
| 17 | |
| 18 | /** |
| 19 | * struct smb350_platform_data |
| 20 | * structure to pass board specific information to the smb137b charger driver |
| 21 | * @chg_current_ma: maximum fast charge current in mA |
| 22 | * @term_current_ma: charge termination current in mA |
| 23 | * @chg_en_n_gpio: gpio to enable or disable charging |
| 24 | * @chg_susp_n_gpio: put active low to allow chip to suspend and disable I2C |
| 25 | * @stat_gpio: STAT pin, active low, '0' when charging. |
| 26 | */ |
| 27 | struct smb350_platform_data { |
| 28 | int chg_en_n_gpio; |
| 29 | int chg_susp_n_gpio; |
| 30 | int chg_current_ma; |
| 31 | int term_current_ma; |
| 32 | int stat_gpio; |
| 33 | }; |
| 34 | |
| 35 | #endif |