From b9f5caf932ede21b58e33ecc096f28eb29b48a78 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Tue, 21 Nov 2017 22:56:20 -0800 Subject: [PATCH] nautilus: Get rid of board_has_working_reset_flags board_has_working_reset_flags was added to poppy/soraka to work around a hardware issue in early revisions where reset flags would be lost on PMIC reset. This issue should not occur for nautilus. Hence, get rid of the function. BUG=None BRANCH=None TEST=make -j buildall Change-Id: Ib281c17e476bbf52dce055718c7faf61eb6ff507 Signed-off-by: Furquan Shaikh Reviewed-on: https://chromium-review.googlesource.com/784773 Reviewed-by: Philip Chen --- board/nautilus/board.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/board/nautilus/board.c b/board/nautilus/board.c index b40ad93df6..787b6ba1bc 100644 --- a/board/nautilus/board.c +++ b/board/nautilus/board.c @@ -704,15 +704,3 @@ 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; -}