diff options
| author | Donggeun Kim <dg77.kim@samsung.com> | 2011-06-22 06:40:06 -0400 |
|---|---|---|
| committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2011-07-08 08:58:59 -0400 |
| commit | 149c077b4bd746eca2eeb241e55456eb4882b259 (patch) | |
| tree | 037b7d498326eb667ae6d14e45d01d89378a0c63 /include/linux/mfd | |
| parent | 7c4509b4cd1d99a1ea22ee4c1da4d3dbb9771c95 (diff) | |
power_supply: Add charger driver for MAX8997/8966
MAX8997/8966 chip is a multi-function device which includes
PMIC, RTC, Fuel Gauge, MUIC, Haptic, Flash control, and
Battery charging control.
The driver for it is located at drivers/mfd.
This patch supports battery charging control of MAX8997/8966 chip and
provides power supply class information to userspace.
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>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/max8997.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/mfd/max8997.h b/include/linux/mfd/max8997.h index 60931d089422..0bbd13dbe336 100644 --- a/include/linux/mfd/max8997.h +++ b/include/linux/mfd/max8997.h | |||
| @@ -107,11 +107,16 @@ struct max8997_platform_data { | |||
| 107 | unsigned int buck5_voltage[8]; | 107 | unsigned int buck5_voltage[8]; |
| 108 | bool buck5_gpiodvs; | 108 | bool buck5_gpiodvs; |
| 109 | 109 | ||
| 110 | /* ---- Charger control ---- */ | ||
| 111 | /* eoc stands for 'end of charge' */ | ||
| 112 | int eoc_mA; /* 50 ~ 200mA by 10mA step */ | ||
| 113 | /* charge Full Timeout */ | ||
| 114 | int timeout; /* 0 (no timeout), 5, 6, 7 hours */ | ||
| 115 | |||
| 110 | /* MUIC: Not implemented */ | 116 | /* MUIC: Not implemented */ |
| 111 | /* HAPTIC: Not implemented */ | 117 | /* HAPTIC: Not implemented */ |
| 112 | /* RTC: Not implemented */ | 118 | /* RTC: Not implemented */ |
| 113 | /* Flash: Not implemented */ | 119 | /* Flash: Not implemented */ |
| 114 | /* Charger control: Not implemented */ | ||
| 115 | }; | 120 | }; |
| 116 | 121 | ||
| 117 | #endif /* __LINUX_MFD_MAX8998_H */ | 122 | #endif /* __LINUX_MFD_MAX8998_H */ |
