diff options
author | Ting Shen <phoenixshen@google.com> | 2020-05-06 17:35:41 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-07 13:57:33 +0000 |
commit | 5e0b69a31b5964644693952f52a6339f66c5e260 (patch) | |
tree | 7c45612a370f4e2d33ba8f0a3a51202f38252923 /board/scarlet | |
parent | 5f04430b37f229869b5afb0f7cee660800970d30 (diff) | |
download | chrome-ec-5e0b69a31b5964644693952f52a6339f66c5e260.tar.gz |
rt946x: remove usb_charger_set_switches from board.h
Since all rt946x users do not customize usb_charger_set_switches(),
move this function into rt946x.c for the upcoming bc12 driver refactor.
A board can customize this function using the new bc12_drv if needed.
BUG=b:155611686
TEST=make buildall
BRANCH=none
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I8724af15c3508b54dc131a7c99004f3f4b2f893f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2187079
Tested-by: Ting Shen <phoenixshen@chromium.org>
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@chromium.org>
Diffstat (limited to 'board/scarlet')
-rw-r--r-- | board/scarlet/board.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/board/scarlet/board.c b/board/scarlet/board.c index 7638bee9cf..97c6f61e10 100644 --- a/board/scarlet/board.c +++ b/board/scarlet/board.c @@ -461,13 +461,3 @@ int board_allow_i2c_passthru(int port) { return (port == I2C_PORT_VIRTUAL_BATTERY); } - -void usb_charger_set_switches(int port, enum usb_switch setting) -{ - /* - * There is no USB2 switch anywhere on this board. But based - * on the discussion in b:65446459, RK3399's USB PHY is powered - * off when USB charging port detection is going on, so things - * should mostly work without a USB2 switch. - */ -} |