power_supply: Add charger driver for MAX8998/LP3974
This patch supports power supply APIs for MAX8998/LP3974. Signed-off-by: Donggeun Kim <dg77.kim@samsung.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: KyungMin Park <kyungmin.park@samsung.com> Acked-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
This commit is contained in:
committed by
Anton Vorontsov
parent
149c077b4b
commit
bb4ce97087
@@ -87,6 +87,15 @@ struct max8998_regulator_data {
|
||||
* @wakeup: Allow to wake up from suspend
|
||||
* @rtc_delay: LP3974 RTC chip bug that requires delay after a register
|
||||
* write before reading it.
|
||||
* @eoc: End of Charge Level in percent: 10% ~ 45% by 5% step
|
||||
* If it equals 0, leave it unchanged.
|
||||
* Otherwise, it is a invalid value.
|
||||
* @restart: Restart Level in mV: 100, 150, 200, and -1 for disable.
|
||||
* If it equals 0, leave it unchanged.
|
||||
* Otherwise, it is a invalid value.
|
||||
* @timeout: Full Timeout in hours: 5, 6, 7, and -1 for disable.
|
||||
* If it equals 0, leave it unchanged.
|
||||
* Otherwise, leave it unchanged.
|
||||
*/
|
||||
struct max8998_platform_data {
|
||||
struct max8998_regulator_data *regulators;
|
||||
@@ -107,6 +116,9 @@ struct max8998_platform_data {
|
||||
int buck2_default_idx;
|
||||
bool wakeup;
|
||||
bool rtc_delay;
|
||||
int eoc;
|
||||
int restart;
|
||||
int timeout;
|
||||
};
|
||||
|
||||
#endif /* __LINUX_MFD_MAX8998_H */
|
||||
|
||||
Reference in New Issue
Block a user