diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2021-11-26 13:10:35 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-01 03:20:47 +0000 |
commit | fa02962cc2697fc9374a9b0d04c4bc66c7a4fbdb (patch) | |
tree | b8acc8caa5a68045426b9ffc8bacb33470584cf8 /zephyr/projects/corsola/src/krabby/usbc_config.c | |
parent | 82a59bd513a8dc8546c39f3be506e10e3f117a1b (diff) | |
download | chrome-ec-fa02962cc2697fc9374a9b0d04c4bc66c7a4fbdb.tar.gz |
zephyr: corsola: refactor daughterboard detection
move the daughterboard detection out of the usbc_config.c
BUG=b:207802869
TEST=zmake test all
BRANCH=none
Change-Id: Ie23915d116cfbfd161f640eeea342e18d2647216
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3303262
Auto-Submit: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
Tested-by: Eric Yilun Lin <yllin@google.com>
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'zephyr/projects/corsola/src/krabby/usbc_config.c')
-rw-r--r-- | zephyr/projects/corsola/src/krabby/usbc_config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zephyr/projects/corsola/src/krabby/usbc_config.c b/zephyr/projects/corsola/src/krabby/usbc_config.c index ee5d9483eb..8a942ed8c4 100644 --- a/zephyr/projects/corsola/src/krabby/usbc_config.c +++ b/zephyr/projects/corsola/src/krabby/usbc_config.c @@ -9,9 +9,11 @@ #include "driver/usb_mux/ps8743.h" #include "hooks.h" +#include "variant_db_detection.h" + void board_usb_mux_init(void) { - if (board_get_sub_board() == SUB_BOARD_TYPEC) { + if (corsola_get_db_type() == CORSOLA_DB_TYPEC) { ps8743_tune_usb_eq(&usb_muxes[1], PS8743_USB_EQ_TX_12_8_DB, PS8743_USB_EQ_RX_12_8_DB); |