summaryrefslogtreecommitdiff
path: root/baseboard/intelrvp/baseboard.h
diff options
context:
space:
mode:
authorDeepti Deshatty <deepti.deshatty@intel.corp-partner.google.com>2021-01-18 22:54:07 +0530
committerCommit Bot <commit-bot@chromium.org>2021-01-21 07:46:44 +0000
commit77b23e66c444a4ed32401448e801924c01f34cc6 (patch)
treefe352f41f6f521051f3b03ee307301c143274b66 /baseboard/intelrvp/baseboard.h
parent5c8236e747bc46c8da8131e78f324136cafe6063 (diff)
downloadchrome-ec-77b23e66c444a4ed32401448e801924c01f34cc6.tar.gz
Intelrvp: Enable power configs.
Don't allow the system to boot to S0 when the battery is low and unable to communicate on locked systems which haven't PD negotiated. BRANCH=none BUG=none TEST=ADLRVP-P booted to OS with only battery connected. Signed-off-by: Deepti Deshatty <deepti.deshatty@intel.corp-partner.google.com> Change-Id: Ia9855fcd095dabb10051d9f70bfca9f600d68326 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2635876 Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'baseboard/intelrvp/baseboard.h')
-rw-r--r--baseboard/intelrvp/baseboard.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/baseboard/intelrvp/baseboard.h b/baseboard/intelrvp/baseboard.h
index ba32522bb4..ae450bb0a0 100644
--- a/baseboard/intelrvp/baseboard.h
+++ b/baseboard/intelrvp/baseboard.h
@@ -61,6 +61,15 @@
#define CONFIG_EXTPOWER_GPIO
#define CONFIG_TRICKLE_CHARGING
+/*
+ * Don't allow the system to boot to S0 when the battery is low and unable to
+ * communicate on locked systems (which haven't PD negotiated)
+ */
+#define CONFIG_CHARGER_MIN_POWER_MW_FOR_POWER_ON_WITH_BATT 15000
+#define CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON 3
+#define CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON_WITH_AC 1
+#define CONFIG_CHARGER_MIN_POWER_MW_FOR_POWER_ON 15001
+
/* Keyboard */
#define CONFIG_KEYBOARD_BOARD_CONFIG
#define CONFIG_KEYBOARD_PROTOCOL_8042