From 4de89a0a5615a2ddaffa9d01789a2cee5ded850e Mon Sep 17 00:00:00 2001 From: qinwentao Date: Thu, 13 May 2021 15:06:55 +0800 Subject: storo:The stylus has no function when the first time using the stylus. fix the power-on detection of the stylus BUG=b:187970959 BRANCH=dedede TEST=make -j BOARD=storo Signed-off-by: jesen Change-Id: Iabde2114464865b7b1cae865bd0737cdb54c9b4a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2891678 Reviewed-by: Henry Sun Reviewed-by: Mike Lee Reviewed-by: Aseda Aboagye Reviewed-by: Daisuke Nojiri Commit-Queue: Aseda Aboagye --- board/storo/board.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/storo/board.c b/board/storo/board.c index 32826d2a3f..f9e17c5749 100644 --- a/board/storo/board.c +++ b/board/storo/board.c @@ -268,6 +268,9 @@ void board_init(void) on = chipset_in_state(CHIPSET_STATE_ON | CHIPSET_STATE_ANY_SUSPEND | CHIPSET_STATE_SOFT_OFF); board_power_5v_enable(on); + + if (!gpio_get_level(GPIO_PEN_DET_ODL)) + gpio_set_level(GPIO_EN_PP3300_PEN, 1); } DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); -- cgit v1.2.1