summaryrefslogtreecommitdiff
path: root/board/ezkinil/board.c
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2020-04-20 16:11:48 -0600
committerCommit Bot <commit-bot@chromium.org>2020-04-28 23:41:50 +0000
commitdf4ef3ce0cf24574a90a2e5be1b23bd11dbe3875 (patch)
treee2d655c82ea542c761da972205d61db18fcb8302 /board/ezkinil/board.c
parent0ec4d5f9a9c200c64ce8f1e5a4a43af006e5f73e (diff)
downloadchrome-ec-df4ef3ce0cf24574a90a2e5be1b23bd11dbe3875.tar.gz
SM5803: Share setting of FLOW_REG1 between tasks better
Both the OTG and charger driver set_mode functions in the sm5803 driver could clear the CHG_EN bit. This change will only clear CHG_EN from a specific call to inhibit charging, and otherwise operations will only modify the bits they strictly need to modify. Also added a mutex to indicate FLOW_REG1 is being changed since it can be changed from both the charger and PD tasks. BRANCH=None BUG=b:153906171 TEST=on waddledee, able to source out of both ports and seeing somewhat reduced boot looping without a battery Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I52339548edb5eafc7605f435c8da17364d1fc48e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2157950 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/ezkinil/board.c')
0 files changed, 0 insertions, 0 deletions