mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 10:31:02 +00:00
Good rule of thumb for charger current is that it should be set between C/20 & C/50 for the battery of the device. For ryu its presently set at 64mA which may explain why we see charger's status as charging even when battery is full. In any case its well below recommendation so lets change it to something within that. Sampled data (see issue tracker) indicates charging current is ~256mA when battery reaches 100% charged. Setting to 192mA (3 * 64) to error on the side of charging slightly longer. This number is still within termination current recommendation: C/20 > term_current >= C/50 Note, also changing bq2589x default termination to match its POR value of 256 as no other board uses this charger presently. Signed-off-by: Todd Broch <tbroch@chromium.org> BRANCH=smaug BUG=chrome-os-partner:42848 TEST=manual, read charger IC termination register and see termination current set to 192mA Change-Id: I60dbb9326c3abb8091fd9ab18eda08b9eabb197b Reviewed-on: https://chromium-review.googlesource.com/293096 Commit-Ready: Todd Broch <tbroch@chromium.org> Tested-by: Todd Broch <tbroch@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>