]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: cpcap-charger: Update charge current table and add comments
authorTony Lindgren <tony@atomide.com>
Thu, 4 May 2017 00:26:13 +0000 (17:26 -0700)
committerSebastian Reichel <sre@kernel.org>
Sun, 14 May 2017 16:26:13 +0000 (18:26 +0200)
commite80a59b131b885c70874b45fb8d7f99adda3db44
tree56e123ea5bb4de7564edffed16a387d795b2dd98
parent6a0fa58cdd92da9a8e6fa4e621cabd91974091b3
power: supply: cpcap-charger: Update charge current table and add comments

Turns out a similar battery charger hardware is documented for NXP MC13783
PMIC in "MC13783 Power Management and Audio Circuit Users's Guide" named
MC13783UG.pdf. Looks like the CPCAP charge current table matches that, so
let's start using the nominal values from it.

While at it, let's also add comments to some of the mystery CPCAP charger
registers based on the MC13783UG.pdf documentation.

Note that this patch does not contain any functional changes, the register
values being used stay the same.

Cc: Marcel Partap <mpartap@gmx.net>
Cc: Michael Scott <michael.scott@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/cpcap-charger.c