diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-09-12 08:53:57 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-09-24 15:25:49 +0100 |
commit | e30110e9c96f48aea01abc3e6dfadb369cbafec3 (patch) | |
tree | b0fffcc4dd9de5c4efad8dda1682d06acde65239 /drivers/power/Kconfig | |
parent | b8f139f68f2099b7f8b4ef470a1e53210e3aa025 (diff) |
charger: max14577: Configure battery-dependent settings from DTS and sysfs
Remove hard-coded values for:
- Fast Charge current,
- End Of Charge current,
- Fast Charge timer,
- Overvoltage Protection Threshold,
- Battery Constant Voltage,
and use DTS or sysfs to configure them. This allows using the max14577 charger
driver with different batteries.
Now the charger driver requires valid configuration data from DTS. In
case of wrong configuration data it fails during probe.
The fast charge timer is configured through sysfs entry.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/power/Kconfig')
-rw-r--r-- | drivers/power/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig index 69fa8a9ef7a6..04e1d2fe2201 100644 --- a/drivers/power/Kconfig +++ b/drivers/power/Kconfig @@ -327,6 +327,7 @@ config CHARGER_MANAGER config CHARGER_MAX14577 tristate "Maxim MAX14577/77836 battery charger driver" depends on MFD_MAX14577 + select SYSFS help Say Y to enable support for the battery charger control sysfs and platform data of MAX14577/77836 MUICs. |