summaryrefslogtreecommitdiff
path: root/include/charge_state_v2.h
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2020-08-25 11:13:01 -0600
committerCommit Bot <commit-bot@chromium.org>2020-08-27 17:58:10 +0000
commit40a988f3fa4c259dcba1d2d8fa0ef84c6a867c88 (patch)
tree1587cb39f1ee9bf136454bb68123d86b58b422f1 /include/charge_state_v2.h
parentffbc66137e4033eccd13a339043efbc24a0e8aab (diff)
downloadchrome-ec-40a988f3fa4c259dcba1d2d8fa0ef84c6a867c88.tar.gz
Charger: Add chgnum parameter to OTG set functions
Add the charger number as an input for setting OTG output current and enabling it, both in the charger driver and in charge_set_output_current_limit(). Also add a clarifying note about the intent of CHARGER_SOLO. BRANCH=None BUG=b:147440290 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I7656c19a87d8216f5efc72dcffa6d638064d3e2f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2376469 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include/charge_state_v2.h')
-rw-r--r--include/charge_state_v2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/charge_state_v2.h b/include/charge_state_v2.h
index f5408fa253..1cff136ee8 100644
--- a/include/charge_state_v2.h
+++ b/include/charge_state_v2.h
@@ -55,11 +55,12 @@ struct charge_state_data {
* Set the output current limit and voltage. This is used to provide power from
* the charger chip ("OTG" mode).
*
+ * @param chgnum Charger index to act upon
* @param ma Maximum current to provide in mA (0 to disable output).
* @param mv Voltage in mV (ignored if ma == 0).
* @return EC_SUCCESS or error
*/
-int charge_set_output_current_limit(int ma, int mv);
+int charge_set_output_current_limit(int chgnum, int ma, int mv);
/**
* Set the charge input current limit. This value is stored and sent every