summaryrefslogtreecommitdiff
path: root/include/charger.h
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2018-05-31 23:13:58 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-06-04 13:31:21 -0700
commitb49d5872e9eacae9cee17c9bf011835bc5e3eb45 (patch)
treea15d2b44784056750ff204730c2c413815b0973d /include/charger.h
parentedbfb3a43b6c4e1dd28f6d00a59896cae198f68b (diff)
downloadchrome-ec-b49d5872e9eacae9cee17c9bf011835bc5e3eb45.tar.gz
bq25703: Report actual input current limit
IIN_DPM register reflects the actual input current limit programmed in the register, either from host or from ICO. After ICO, the current limit used by DPM regulation may differ from the IIN_HOST register settings. BUG=b:80279932 BRANCH=none TEST=Manually tested on BIP Used BC1.2 DCP charger 'charger' command yield 900mA while charge ramp set to 2.4A. Change-Id: I6389205bd70d7729e9dd810fef3dfbf83a7d8c65 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/1080343 Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com> Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include/charger.h')
-rw-r--r--include/charger.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/charger.h b/include/charger.h
index fcdbc3034e..964c3bf759 100644
--- a/include/charger.h
+++ b/include/charger.h
@@ -138,8 +138,17 @@ int board_discharge_on_ac(int enable);
int charger_get_system_power(void);
/* Other parameters that may be charger-specific, but are common so far. */
+
+/* Set desired input current value */
int charger_set_input_current(int input_current);
+
+/*
+ * Get actual input current value.
+ * Actual input current may be less than the desired input current set
+ * due to current ratings of the wall adapter.
+ */
int charger_get_input_current(int *input_current);
+
int charger_manufacturer_id(int *id);
int charger_device_id(int *id);
int charger_get_option(int *option);