diff options
author | Zick Wei <zick.wei@quanta.corp-partner.google.com> | 2020-09-24 14:54:55 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-26 20:50:35 +0000 |
commit | 7405848ded48b0fbb7ca463e779dc55f75a843b8 (patch) | |
tree | f18e586f816709612533c1ea5b50d2ae49fad55b /board | |
parent | 4a3afc38aa147d5b7feff62984b538a3c7428db0 (diff) | |
download | chrome-ec-7405848ded48b0fbb7ca463e779dc55f75a843b8.tar.gz |
berknip: update mux hpd signal
This CL update USB_C1_HPD_IN_DB use gpio_or_ioex_set_level().
BUG=none
BRANCH=zork
TEST=verify EC not panic on board version>=3.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Ifc01005d0f974f1ab3f5f095156b516e0cba9ff1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2428355
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/berknip/board.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/berknip/board.c b/board/berknip/board.c index 8f797d9539..7d7e9094fe 100644 --- a/board/berknip/board.c +++ b/board/berknip/board.c @@ -285,10 +285,10 @@ static int board_tusb544_mux_set(const struct usb_mux *me, { if (mux_state & USB_PD_MUX_DP_ENABLED) { /* Enable IN_HPD on the DB */ - ioex_set_level(board_usbc1_retimer_inhpd, 1); + gpio_or_ioex_set_level(board_usbc1_retimer_inhpd, 1); } else { /* Disable IN_HPD on the DB */ - ioex_set_level(board_usbc1_retimer_inhpd, 0); + gpio_or_ioex_set_level(board_usbc1_retimer_inhpd, 0); } return EC_SUCCESS; } @@ -298,10 +298,10 @@ static int board_ps8743_mux_set(const struct usb_mux *me, { if (mux_state & USB_PD_MUX_DP_ENABLED) /* Enable IN_HPD on the DB */ - ioex_set_level(board_usbc1_retimer_inhpd, 1); + gpio_or_ioex_set_level(board_usbc1_retimer_inhpd, 1); else /* Disable IN_HPD on the DB */ - ioex_set_level(board_usbc1_retimer_inhpd, 0); + gpio_or_ioex_set_level(board_usbc1_retimer_inhpd, 0); return EC_SUCCESS; } |