2 * LP8727 Micro/Mini USB IC with integrated charger
4 * Copyright (C) 2011 Texas Instruments
5 * Copyright (C) 2011 National Semiconductor
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
15 enum lp8727_eoc_level
{
39 * struct lp8727_chg_param
40 * @eoc_level : end of charge level setting
41 * @ichg : charging current
43 struct lp8727_chg_param
{
44 enum lp8727_eoc_level eoc_level
;
45 enum lp8727_ichg ichg
;
49 * struct lp8727_platform_data
50 * @get_batt_present : check battery status - exists or not
51 * @get_batt_level : get battery voltage (mV)
52 * @get_batt_capacity : get battery capacity (%)
53 * @get_batt_temp : get battery temperature
54 * @ac : charging parameters for AC type charger
55 * @usb : charging parameters for USB type charger
56 * @debounce_msec : interrupt debounce time
58 struct lp8727_platform_data
{
59 u8 (*get_batt_present
)(void);
60 u16 (*get_batt_level
)(void);
61 u8 (*get_batt_capacity
)(void);
62 u8 (*get_batt_temp
)(void);
63 struct lp8727_chg_param
*ac
;
64 struct lp8727_chg_param
*usb
;
65 unsigned int debounce_msec
;