mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 10:31:02 +00:00
nautilus: Implement workaround for broken reset flags
Current revision of nautilus boards will lose VBAT on power cycle and therefore cannot successfully save the reset flag state. Implement workaround that will allow boards to continue to work for FAFT testing by indicating to the skylake chipset power code that it could skip the PMIC reset when doing 'reboot ap-off'. BUG=b:67062902 BRANCH=None TEST=None Change-Id: I078f6d62b2161c1b3322da15aba02efaca2010ba Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/855737 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
c1ad33b24d
commit
56d3ee4dd4
@@ -748,3 +748,15 @@ static void board_chipset_shutdown(void)
|
||||
gpio_set_level(GPIO_ENABLE_TOUCHPAD, 0);
|
||||
}
|
||||
DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN, board_chipset_shutdown, 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