summaryrefslogtreecommitdiff
path: root/driver/charger/sm5803.h
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2020-04-09 17:02:35 -0600
committerCommit Bot <commit-bot@chromium.org>2020-04-10 07:56:46 +0000
commit207082eb3ca62116e55c3a15d04b532db70026c3 (patch)
tree6f8aca547dad60b33ed6078e4504f657da7d872c /driver/charger/sm5803.h
parent382d22af0ffafba034f254276c5a6481ccbba1de (diff)
downloadchrome-ec-207082eb3ca62116e55c3a15d04b532db70026c3.tar.gz
SM5803: Add open drain parameter to GPIO setup
Explicitly set GPIO0 to be open drain or not, depending on the application needed. BRANCH=None BUG=b:153398237 TEST=on waddledee, redriver now inits and responds correctly Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Iaf6c66841a618ae5a522ad7f817dac3a5e0c755c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2145074 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'driver/charger/sm5803.h')
-rw-r--r--driver/charger/sm5803.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/charger/sm5803.h b/driver/charger/sm5803.h
index 09a47b423e..bd34fd0630 100644
--- a/driver/charger/sm5803.h
+++ b/driver/charger/sm5803.h
@@ -234,7 +234,7 @@ enum sm5803_gpio0_modes {
/* Expose functions to control charger's GPIO and CHG_DET configuration */
enum ec_error_list sm5803_configure_gpio0(int chgnum,
- enum sm5803_gpio0_modes mode);
+ enum sm5803_gpio0_modes mode, int od);
enum ec_error_list sm5803_set_gpio0_level(int chgnum, int level);
enum ec_error_list sm5803_configure_chg_det_od(int chgnum, int enable);
enum ec_error_list sm5803_get_chg_det(int chgnum, int *chg_det);