Add default battery cutoff flow after factory reset
Previously all battery cutoff flows are in board specific overlay.
However, most of them are similiar after we have ectool. This increases
the difficulty for future maintainance.
This CL add a default battery cutoff flow after factory reset.
BUG=chrome-os-partner:45716
TEST=1. Remove baord_factory_reset.h
2. Config factory_install_shim using edit_lsb_factory
3. Run factory_install_shim to perform factory reset
Tested config includes:
1. Jerry
- cutoff: shutdown, reboot, batterycutoff, cutoff after shutdown
- battery: set min and max battery range
- cutoff state: dis/connect ac
2. Paine
- cutoff: cutoff after shutdown
- battery: set min and max battery range
3. Monroe
- cutoff: shutdown
CL-DEPEND=CL:302510
Change-Id: I65a13b968f4826f1d72683643fda2274f5f95588
Reviewed-on: https://chromium-review.googlesource.com/302287
Commit-Ready: Shun-Hsing Ou <shunhsingou@chromium.org>
Tested-by: Shun-Hsing Ou <shunhsingou@chromium.org>
Reviewed-by: Shun-Hsing Ou <shunhsingou@chromium.org>
1 file changed