summaryrefslogtreecommitdiff
path: root/include/ec_commands.h
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2021-02-09 14:59:09 -0800
committerCommit Bot <commit-bot@chromium.org>2021-02-10 00:20:32 +0000
commit2875dd8dd9920954f8c40621e9453d3b2e4bfc82 (patch)
treeb5ef13b6d170401779d754193fac493e4e696f54 /include/ec_commands.h
parent07675ded17776492ceb1100c59d932439e71f0d0 (diff)
downloadchrome-ec-2875dd8dd9920954f8c40621e9453d3b2e4bfc82.tar.gz
ocpc: Raise resistance calc current threshold
One of the chargers used in OCPC systems has an ADC resolution of 96mV. This causes an issue when the voltage delta that is used for the resistance calculation is smaller than this value as this can lead to a value of 0 resistance. When the battery is charged at a high enough current, there's enough of a voltage drop such that the delta exceeds the ADC LSB. This commit simply raises the threshold at which resistance is calculated in system to 1666mA such that the voltage delta exceeds the LSB of the charger IC's LSB. BUG=b:175063397 BRANCH=dedede TEST=Build and flash madoo. Charge from sub board, verify that once charging current exceeds 1666mA, resistance is calculated. Verify that the calculated system resistance is non-zero. Signed-off-by: Aseda Aboagye <aaboagye@google.com> Change-Id: Idfe5a4858f9915b54ad7b095c2972597909f97a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2686256 Tested-by: Aseda Aboagye <aaboagye@chromium.org> Auto-Submit: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
0 files changed, 0 insertions, 0 deletions