scarlet: Enable AP throttling for battery OCP

BUG=b:74321682
BRANCH=scarlet
TEST=manually test on scarlet together with CL:994188

Change-Id: I831ca9941248835f98a1c5ea69e751f3f7413ed7
Signed-off-by: Philip Chen <philipchen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1043454
Commit-Ready: Philip Chen <philipchen@chromium.org>
Tested-by: Philip Chen <philipchen@chromium.org>
Reviewed-by: Philip Chen <philipchen@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
This commit is contained in:
Philip Chen
2018-05-03 17:43:56 -07:00
committed by chrome-bot
parent 43db76c108
commit 13ea63266c

View File

@@ -129,6 +129,9 @@
#define BATTERY_MAX17055_RSENSE 5 /* m-ohm */
#define BATTERY_DESIRED_CHARGING_CURRENT 2000 /* mA */
#define CONFIG_THROTTLE_AP_ON_BAT_DISCHG_CURRENT
#define BAT_MAX_DISCHG_CURRENT 5000 /* mA */
#define PD_OPERATING_POWER_MW 15000
#define PD_MAX_POWER_MW ((PD_MAX_VOLTAGE_MV * PD_MAX_CURRENT_MA) / 1000)
#define PD_MAX_CURRENT_MA 3000