aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim, Milo <Milo.Kim@nsc.com>2011-09-07 04:56:14 -0400
committerAnton Vorontsov <cbouatmailru@gmail.com>2012-01-04 07:20:53 -0500
commit620b2736696743fc785b2fc63dbc0fe69cbfe3a7 (patch)
tree11df5094b22a55fc297ca5104a541f61d1cff925
parent300bac7fb85a20b2704dc3645419057992f78565 (diff)
lp8727_charger: Add header file
Oops, forgot to 'git add' it. [AV] Signed-off-by: Woogyom Kim <milo.kim@ti.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
-rwxr-xr-xinclude/linux/lp8727.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/include/linux/lp8727.h b/include/linux/lp8727.h
new file mode 100755
index 00000000000..3ec558959a1
--- /dev/null
+++ b/include/linux/lp8727.h
@@ -0,0 +1,54 @@
1/*
2 * lp8727.h - Driver for LP8727 Micro/Mini USB IC with intergrated charger
3 *
4 * Copyright (C) 2011 National Semiconductor
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
12#ifndef _LP8727_H
13#define _LP8727_H
14
15enum lp8727_eoc_level {
16 EOC_5P,
17 EOC_10P,
18 EOC_16P,
19 EOC_20P,
20 EOC_25P,
21 EOC_33P,
22 EOC_50P,
23};
24
25enum lp8727_ichg {
26 ICHG_90mA,
27 ICHG_100mA,
28 ICHG_400mA,
29 ICHG_450mA,
30 ICHG_500mA,
31 ICHG_600mA,
32 ICHG_700mA,
33 ICHG_800mA,
34 ICHG_900mA,
35 ICHG_1000mA,
36};
37
38struct lp8727_chg_param {
39 /* end of charge level setting */
40 enum lp8727_eoc_level eoc_level;
41 /* charging current */
42 enum lp8727_ichg ichg;
43};
44
45struct lp8727_platform_data {
46 u8(*get_batt_present) (void);
47 u16(*get_batt_level) (void);
48 u8(*get_batt_capacity) (void);
49 u8(*get_batt_temp) (void);
50 struct lp8727_chg_param ac;
51 struct lp8727_chg_param usb;
52};
53
54#endif