diff options
author | Zick Wei <zick.wei@quanta.corp-partner.google.com> | 2020-07-13 11:25:28 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-13 18:18:05 +0000 |
commit | aace349584c886b1b45122f70b2feea657fc795e (patch) | |
tree | c3b7ceb853c573a6e4d306d321f17f6ba6dc5c62 /board/morphius/board.c | |
parent | 26067e10c7cbbc3fbac7e7ff2a4568f5380958d9 (diff) | |
download | chrome-ec-aace349584c886b1b45122f70b2feea657fc795e.tar.gz |
morphius: remove retimer probe code
This patch remove unuse retimer probe code,
which can be detect by CBI fw_config.
BUG=none
BRANCH=none
TEST=verify that retimer can be detect by CBI fw_config.
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: If383eabfe43b3905f70e300028204bf3c43e6e61
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2294619
Reviewed-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'board/morphius/board.c')
-rw-r--r-- | board/morphius/board.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/board/morphius/board.c b/board/morphius/board.c index cd413a15dc..ccebea4e9e 100644 --- a/board/morphius/board.c +++ b/board/morphius/board.c @@ -220,28 +220,6 @@ static void setup_mux(void) } } -/* TODO(b:151232257) Remove probe code when hardware supports CBI */ -#include "driver/retimer/ps8802.h" -#include "driver/retimer/ps8818.h" -static void probe_setup_mux_backup(void) -{ - if (usb_muxes[USBC_PORT_C1].driver != NULL) - return; - - /* - * Identifying a PS8818 is faster than the PS8802, - * so do it first. - */ - if (ps8818_detect(&usbc1_ps8818) == EC_SUCCESS) { - set_cbi_fw_config(0x00004000); - setup_mux(); - } else if (ps8802_detect(&usbc1_ps8802) == EC_SUCCESS) { - set_cbi_fw_config(0x00004001); - setup_mux(); - } -} -DECLARE_HOOK(HOOK_CHIPSET_STARTUP, probe_setup_mux_backup, HOOK_PRIO_DEFAULT); - const struct pi3dpx1207_usb_control pi3dpx1207_controls[] = { [USBC_PORT_C0] = { .enable_gpio = IOEX_USB_C0_DATA_EN, |