diff options
author | qinwentao <wangganxiang@huaqin.corp-partner.google.com> | 2021-05-13 15:06:55 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-14 05:24:27 +0000 |
commit | 4de89a0a5615a2ddaffa9d01789a2cee5ded850e (patch) | |
tree | 810a94db3b9849673c129aa2f091ba9bf15b145c | |
parent | dada308058ea9bb5153360984ab8efab2ee97aa2 (diff) | |
download | chrome-ec-stabilize-13970.B-main.tar.gz |
storo:The stylus has no function when the first time using the stylus.stabilize-13970.B-main
fix the power-on detection of the stylus
BUG=b:187970959
BRANCH=dedede
TEST=make -j BOARD=storo
Signed-off-by: jesen <wangganxiang@huaqin.corp-partner.google.com>
Change-Id: Iabde2114464865b7b1cae865bd0737cdb54c9b4a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2891678
Reviewed-by: Henry Sun <henrysun@google.com>
Reviewed-by: Mike Lee <mike5@huaqin.corp-partner.google.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r-- | board/storo/board.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |