blob: 959d8a877e5fe0cffc444bebf2e3b9b8f5627042 [file] [log] [blame]
Duy Truong790f06d2013-02-13 16:38:12 -08001/* Copyright (c) 2009, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07002 *
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
21struct msm_psy_batt_pdata {
22 u32 voltage_max_design;
23 u32 voltage_min_design;
Krishna Vanka3d015f22012-05-31 11:43:23 +053024 u32 voltage_fail_safe;
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -070025 u32 avail_chg_sources;
26 u32 batt_technology;
27 u32 (*calculate_capacity)(u32 voltage);
28};
29
30#endif