mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-31 02:51:26 +00:00
poppy: Implement workaround for broken reset flags
Boards Rev1 and Rev2 will lose VBAT on power cycle and therefore cannot successfully save the reset flag state. Implement workaround that will allow these boards to continue to work for FAFT testing by indicating to the skylake chipset power code that it should skip the PMIC reset when doing 'reboot ap-off'. BUG=b:62504451 BRANCH=None TEST=Verified that "reboot ap-off" works fine on Rev1. Change-Id: I97ee346c0e8796375dc295cfa7a86cd0d57d4e4f Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/530515 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
52c5b31c22
commit
cabd486cb2
@@ -894,3 +894,15 @@ static void board_chipset_suspend(void)
|
||||
gpio_set_level(GPIO_ENABLE_BACKLIGHT, 0);
|
||||
}
|
||||
DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_chipset_suspend, HOOK_PRIO_DEFAULT);
|
||||
|
||||
int board_has_working_reset_flags(void)
|
||||
{
|
||||
int version = system_get_board_version();
|
||||
|
||||
/* Boards Rev1 and Rev2 will lose reset flags on power cycle. */
|
||||
if ((version == 1) || (version == 2))
|
||||
return 0;
|
||||
|
||||
/* All other board versions should have working reset flags */
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user