summaryrefslogtreecommitdiff
path: root/board/cheza/board.h
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2018-05-08 10:46:02 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-05-22 15:54:05 -0700
commit60b3b245c1667a5ebc42a5d6fcaec8b28d5a5ef7 (patch)
treeee7aa95cb5a282e879694b56d4b3d679c2bf929e /board/cheza/board.h
parentfc8b1ab52c6f5d556f91a3b8f4ce6a8ef437ae70 (diff)
downloadchrome-ec-60b3b245c1667a5ebc42a5d6fcaec8b28d5a5ef7.tar.gz
cheza: Check power enough and enable PP5000 when power-on AP
Remove the previous hack of force increasing the adapter current. The PP5000 rail is now turned on/off during power-on/off AP. Add a check to ensure it has enough power to enable the 5V rail and boot AP. If the battery is in low level or unplugged and the charger adapter doesn't supply enough power, don't boot AP and transition back to S5. The check may wait a while for PD negoiation. BRANCH=none BUG=b:79353631 TEST=On battery plugged and unplugged cases, checked the device can source VBUS to USB port-0 and port-1. TEST=Unplug battery and use a low-power adapter, can't boot up AP. See the "Not enough power to boot" message and transition to S5. Change-Id: Ie9b8dff6e10d97dffd554b382595e5e7a70875e6 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/1050607
Diffstat (limited to 'board/cheza/board.h')
-rw-r--r--board/cheza/board.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/cheza/board.h b/board/cheza/board.h
index ad96a53d4c..f2d7b8fdd0 100644
--- a/board/cheza/board.h
+++ b/board/cheza/board.h
@@ -51,6 +51,7 @@
/* TODO(b/79163120): Use correct charger values, copied from Lux for rev-0 */
#define CONFIG_CHARGER_INPUT_CURRENT 512
#define CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON 2
+#define CONFIG_CHARGER_MIN_POWER_MW_FOR_POWER_ON 7500
#define CONFIG_CHARGER_SENSE_RESISTOR 10
#define CONFIG_CHARGER_SENSE_RESISTOR_AC 20
@@ -97,6 +98,7 @@
#define CONFIG_CHIPSET_SDM845
#define CONFIG_CHIPSET_RESET_HOOK
#define CONFIG_POWER_COMMON
+#define CONFIG_POWER_PP5000_CONTROL
/* TODO(b/79348203): Enable EC hibernate */
#undef CONFIG_HIBERNATE