summaryrefslogtreecommitdiff
path: root/board/kukui
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2019-10-16 12:07:59 +0800
committerCommit Bot <commit-bot@chromium.org>2019-10-17 07:14:31 +0000
commit99c273e1ecd4f90aa8b883fd4ed9e56ca6bbbda1 (patch)
tree2eb2e688200ec0e1ad8417ff97091dc7aea9cfbf /board/kukui
parent37edd51bc1465a873ede878978556542b8fe3c20 (diff)
downloadchrome-ec-99c273e1ecd4f90aa8b883fd4ed9e56ca6bbbda1.tar.gz
kukui: runtime usb mux config selection
The compile time IF_ENABLED(CONFIG_USB_MUX_XXX) does not work on kukui, change this to runtime selection. BUG=b:135079572 TEST=On Krane Rev5/Kodama, verify the mux switch to dp + usb mode (i2cxfer r 0 0x48 0x11 returns 0x03 or 0x13) BRANCH=kukui Change-Id: Ib44f0c383ed5f9156e3dd3bf6faa3daebb22e146 Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1864493 Tested-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Diffstat (limited to 'board/kukui')
-rw-r--r--board/kukui/board.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/kukui/board.c b/board/kukui/board.c
index 4e7182b433..c62d89a92d 100644
--- a/board/kukui/board.c
+++ b/board/kukui/board.c
@@ -38,6 +38,7 @@
#include "timer.h"
#include "usb_charge.h"
#include "usb_mux.h"
+#include "usb_pd_policy.h"
#include "usb_pd_tcpm.h"
#include "util.h"
@@ -563,3 +564,8 @@ void board_fill_source_power_info(int port,
r->meas.current_lim = 1500;
r->max_power = r->meas.voltage_now * r->meas.current_max;
}
+
+__override int board_has_virtual_mux(void)
+{
+ return board_get_version() < 5;
+}