diff options
author | Aseda Aboagye <aaboagye@google.com> | 2016-07-15 19:17:44 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-07-18 11:36:36 -0700 |
commit | 06ca7d4d9137b407a3cf5dd86bdb1cdb4e6334e7 (patch) | |
tree | 3d7fdeec76d92817e3cafc598f83f6cceac0eaa6 /board | |
parent | c9f150c3686d6148ec6b73b65c4689b6eb78b6b8 (diff) | |
download | chrome-ec-06ca7d4d9137b407a3cf5dd86bdb1cdb4e6334e7.tar.gz |
rk3399: kevin: Inhibit booting w/ insufficient pwr
Before, as soon as the EC started booting, it would unconditionally boot
the AP (unless explicitly told not to. ie: "reboot ap-off"). However,
we weren't waiting for our power to settle which was causing some
brownouts. This would happen when trying to boot without the battery.
This commit causes the EC to inhibit powering on the AP until we have
sufficient power.
BUG=chrome-os-partner:55289
BRANCH=None
TEST=Flash EVT2; verify can boot normally.
TEST=Remove battery and insert charger. Verify that DUT can boot up.
TEST=Insert drained battery. Verify power on is inhbited. Plug in
charger and verify that DUT can power on.
Change-Id: Ifb40766fcc1d330674ec39de6d81174f92b6d658
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/361005
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/kevin/board.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/kevin/board.h b/board/kevin/board.h index fa41f99c68..4dcca31dbe 100644 --- a/board/kevin/board.h +++ b/board/kevin/board.h @@ -56,6 +56,9 @@ #define CONFIG_CHARGER_INPUT_CURRENT 512 #define CONFIG_CHARGER_NARROW_VDC #define CONFIG_CHARGER_V2 +#define CONFIG_CHARGER_MIN_BAT_PCT_FOR_POWER_ON 1 +#define CONFIG_CHARGER_LIMIT_POWER_THRESH_BAT_PCT 1 +#define CONFIG_CHARGER_LIMIT_POWER_THRESH_CHG_MW 15000 #define CONFIG_USB_CHARGER #define CONFIG_USB_MUX_VIRTUAL |