diff options
Diffstat (limited to 'include/linux/max17048_battery.h')
-rw-r--r-- | include/linux/max17048_battery.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/linux/max17048_battery.h b/include/linux/max17048_battery.h new file mode 100644 index 00000000000..d997082fb5a --- /dev/null +++ b/include/linux/max17048_battery.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2009 Samsung Electronics | ||
3 | * Copyright (C) 2012 Nvidia Cooperation | ||
4 | * Minkyu Kang <mk7.kang@samsung.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | |||
11 | #ifndef __MAX17048_BATTERY_H_ | ||
12 | #define __MAX17048_BATTERY_H_ | ||
13 | #include <linux/smb349-charger.h> | ||
14 | |||
15 | struct max17048_battery_model { | ||
16 | uint8_t rcomp; | ||
17 | uint8_t soccheck_A; | ||
18 | uint8_t soccheck_B; | ||
19 | uint8_t bits; | ||
20 | uint8_t alert_threshold; | ||
21 | uint8_t one_percent_alerts; | ||
22 | uint8_t alert_on_reset; | ||
23 | uint16_t rcomp_seg; | ||
24 | uint16_t hibernate; | ||
25 | uint16_t vreset; | ||
26 | uint16_t valert; | ||
27 | uint16_t ocvtest; | ||
28 | }; | ||
29 | |||
30 | struct max17048_platform_data { | ||
31 | int (*battery_online)(void); | ||
32 | int (*charging_status)(void); | ||
33 | int (*charger_online)(void); | ||
34 | }; | ||
35 | #endif | ||