summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/Makefile
diff options
context:
space:
mode:
authorTony Lindgren2017-06-01 02:19:21 +0200
committerSebastian Reichel2017-06-08 13:05:54 +0200
commit874b2adbed1253a11549cb9b7b912ab65fea9cf2 (patch)
tree261c261be50bcee5d87c0488e76ff803a3ce76ca /drivers/power/supply/Makefile
parentdt-bindings: power: supply: cpcap-battery: Add binding (diff)
downloadkernel-qcow2-linux-874b2adbed1253a11549cb9b7b912ab65fea9cf2.tar.gz
kernel-qcow2-linux-874b2adbed1253a11549cb9b7b912ab65fea9cf2.tar.xz
kernel-qcow2-linux-874b2adbed1253a11549cb9b7b912ab65fea9cf2.zip
power: supply: cpcap-battery: Add a battery driver
On the CPCAP PMIC we can use the ADCs for monitoring the battery, and there is also a coulomb counter. So let's add basic support for the battery driver. I did not add any capacity prediction as that should probably be done in the user space. Or at least user space should tell the kernel some battery statistics and then the kernel driver could display the capacity based on that. Cc: devicetree@vger.kernel.org Cc: Marcel Partap <mpartap@gmx.net> Cc: Michael Scott <michael.scott@linaro.org> Cc: Rob Herring <robh@kernel.org> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'drivers/power/supply/Makefile')
-rw-r--r--drivers/power/supply/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/Makefile b/drivers/power/supply/Makefile
index c5e576f0f0ee..a41f40957847 100644
--- a/drivers/power/supply/Makefile
+++ b/drivers/power/supply/Makefile
@@ -20,6 +20,7 @@ obj-$(CONFIG_BATTERY_88PM860X) += 88pm860x_battery.o
obj-$(CONFIG_BATTERY_ACT8945A) += act8945a_charger.o
obj-$(CONFIG_BATTERY_AXP20X) += axp20x_battery.o
obj-$(CONFIG_CHARGER_AXP20X) += axp20x_ac_power.o
+obj-$(CONFIG_BATTERY_CPCAP) += cpcap-battery.o
obj-$(CONFIG_BATTERY_DS2760) += ds2760_battery.o
obj-$(CONFIG_BATTERY_DS2780) += ds2780_battery.o
obj-$(CONFIG_BATTERY_DS2781) += ds2781_battery.o