Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2009, 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 | |
| 14 | |
| 15 | #ifndef __MSM_BATTERY_H__ |
| 16 | #define __MSM_BATTERY_H__ |
| 17 | |
| 18 | #define AC_CHG 0x00000001 |
| 19 | #define USB_CHG 0x00000002 |
| 20 | |
| 21 | struct msm_psy_batt_pdata { |
| 22 | u32 voltage_max_design; |
| 23 | u32 voltage_min_design; |
Krishna Vanka | 3d015f2 | 2012-05-31 11:43:23 +0530 | [diff] [blame] | 24 | u32 voltage_fail_safe; |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 25 | u32 avail_chg_sources; |
| 26 | u32 batt_technology; |
| 27 | u32 (*calculate_capacity)(u32 voltage); |
| 28 | }; |
| 29 | |
| 30 | #endif |