summaryrefslogtreecommitdiff
path: root/baseboard
diff options
context:
space:
mode:
authorEdward Hill <ecgh@chromium.org>2020-09-16 19:51:48 -0600
committerCommit Bot <commit-bot@chromium.org>2020-09-17 22:46:42 +0000
commit6c269abef398717658bc863dbc874242d86fdb39 (patch)
treedd4c0c95cf245e5fe1c1e524e534595a1c49e3c3 /baseboard
parent20ac786d2383539055d0f167920155c1a2242717 (diff)
downloadchrome-ec-6c269abef398717658bc863dbc874242d86fdb39.tar.gz
zork: Adjust AP power limits
Adjust EC config settings that control how much battery charge and AC power is required to allow AP to boot, to align with how much power the HW actually needs. EC will boot AP to depthcharge if: (BAT >= 4%) || (AC >= 50W) CONFIG_CHARGER_LIMIT_* is not set, so there is no additional restriction on Depthcharge to boot OS. BUG=b:162938720 BRANCH=zork TEST=boot with: - various battery and AC levels, - plugged/unplugged battery, - locked/unlocked EC, - swsync GBB disabled/enabled Signed-off-by: Edward Hill <ecgh@chromium.org> Change-Id: I78aa84b8b0b18429d1301085ab878c62a4afd687 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2415629 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r--baseboard/zork/baseboard.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/baseboard/zork/baseboard.h b/baseboard/zork/baseboard.h
index 4938914e52..f3c0b48ccb 100644
--- a/baseboard/zork/baseboard.h
+++ b/baseboard/zork/baseboard.h
@@ -211,18 +211,12 @@
#define ZORK_AC_PROCHOT_CURRENT_MA 3328
/*
- * Minimum conditions to start AP and perform swsync. Note that when the
- * charger is connected via USB-PD analog signaling, the boot will proceed
- * regardless.
+ * EC will boot AP to depthcharge if: (BAT >= 4%) || (AC >= 50W)
+ * CONFIG_CHARGER_LIMIT_* is not set, so there is no additional restriction on
+ * Depthcharge to boot OS.
*/
-#define CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON 3
-
-/*
- * Require PD negotiation to be complete when we are in a low-battery condition
- * prior to releasing depthcharge to the kernel.
- */
-#define CONFIG_CHARGER_LIMIT_POWER_THRESH_CHG_MW 15001
-#define CONFIG_CHARGER_LIMIT_POWER_THRESH_BAT_PCT 3
+#define CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON 4
+#define CONFIG_CHARGER_MIN_POWER_MW_FOR_POWER_ON 50000
/* Increase length of history buffer for port80 messages. */
#undef CONFIG_PORT80_HISTORY_LEN