summaryrefslogtreecommitdiff
path: root/include/ec_commands.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r--include/ec_commands.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index 05a7acf781..9dc5566e92 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -1208,6 +1208,15 @@ struct ec_params_force_idle {
*/
#define EC_CMD_CHARGE_DUMP 0xa0
+/*
+ * Set maximum battery charging current.
+ */
+#define EC_CMD_CHARGE_CURRENT_LIMIT 0xa1
+
+struct ec_params_current_limit {
+ uint32_t limit;
+} __packed;
+
/*****************************************************************************/
/* System commands */