power_supply: Add support for tps65090-charger
authorRhyland Klein <rklein@nvidia.com>
Tue, 12 Mar 2013 22:08:09 +0000 (18:08 -0400)
committerAnton Vorontsov <anton@enomsg.org>
Tue, 19 Mar 2013 02:20:05 +0000 (19:20 -0700)
commit6f8da5df8c451103e0043f73a00c90676da6be9e
tree3e791e4a8c081279f8da239ef7f5a72ce0909617
parent78f7bcedf8ba70027e0f9f94ec420998a273a95c
power_supply: Add support for tps65090-charger

This patch adds support for the tps65090 charger driver. This driver is
responsible for controlling the charger aspect of the tps65090 mfd.
Currently, this mainly consists of turning on and off the charger, but
some features of the charger can be supported through this driver
including:

- Enable Auto Recharge based on Battery voltage
- Fast Charge Safety Timer
- Maximum battery discharge current
- Maximum battery adapter current
- Enable External Charge
- Disable charging termination based on low charger current (supported)

Once the driver is accepted, later patches can add support for the
features above which are not yet supported.

Based on work by:

  Syed Rafiuddin <srafiuddin@nvidia.com>
  Laxman Dewangan <ldewangan@nvidia.com>

Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/Kconfig
drivers/power/Makefile
drivers/power/tps65090-charger.c [new file with mode: 0644]
include/linux/mfd/tps65090.h