summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-03-15 13:18:26 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-03-15 17:58:21 -0700
commitc63bb63b5a8a23d81b3c96adbb0c361a4c1af255 (patch)
treea4e618a60ece61063b37ca30a7629c9150950aa4
parentccbba8f968ac4bf77c7c8ed665ab96a587f65ff8 (diff)
downloadchrome-ec-c63bb63b5a8a23d81b3c96adbb0c361a4c1af255.tar.gz
poppy/soraka: Disable power button shutdown timer on the PMIC
Similar to eve, disable power button shutdown by PMIC on long press of power button. Using Vup+Pwr is the still the best way to do a PMIC reset. BUG=b:74866345 BRANCH=poppy TEST=Verified that holding power button for >80 seconds did not trigger PMIC shutdown. Change-Id: I6a844b1b5d68a9e28daaf0452e461233057e1869 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://chromium-review.googlesource.com/964889 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Duncan Laurie <dlaurie@google.com>
-rw-r--r--board/poppy/board.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/poppy/board.c b/board/poppy/board.c
index 2f9cc31c4f..f3243bd83a 100644
--- a/board/poppy/board.c
+++ b/board/poppy/board.c
@@ -514,6 +514,9 @@ static void board_pmic_init(void)
/* VRMODECTRL - disable low-power mode for all rails */
i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x3b, 0x1f);
+
+ /* Disable power button shutdown timer. */
+ i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x14, 0x00);
}
DECLARE_HOOK(HOOK_INIT, board_pmic_init, HOOK_PRIO_DEFAULT);