summaryrefslogtreecommitdiff
path: root/baseboard/volteer/baseboard.c
diff options
context:
space:
mode:
authorCaveh Jalali <caveh@chromium.org>2020-03-20 17:16:33 -0700
committerCommit Bot <commit-bot@chromium.org>2020-03-25 00:11:11 +0000
commitde357c3403b899b8ef497e85590146b157b2bdcf (patch)
tree048ad4499ebfa3adc4d1a0e51e5672cf9686095c /baseboard/volteer/baseboard.c
parent017d8b480f7335f9957f8281223c816f98a57435 (diff)
downloadchrome-ec-de357c3403b899b8ef497e85590146b157b2bdcf.tar.gz
volteer: enable ps8815 on USB3 daughter board
this enables the ps8815 functionality on the USB3 daughter board. note that that this relies on "early TCSS" capability being enabled in the BIOS to configure the TCSS. BUG=b:144397088 BRANCH=none TEST=USB3 flash drive shows up as 5Gbit device recovery works, also shows up as 5Gbit device. Change-Id: Ifb2c021b9df6fdf6fe0964bc9b0508469b593175 Signed-off-by: Caveh Jalali <caveh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2113639 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'baseboard/volteer/baseboard.c')
-rw-r--r--baseboard/volteer/baseboard.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/baseboard/volteer/baseboard.c b/baseboard/volteer/baseboard.c
index c217a549d8..84ad7e8089 100644
--- a/baseboard/volteer/baseboard.c
+++ b/baseboard/volteer/baseboard.c
@@ -15,6 +15,7 @@
#include "driver/ppc/sn5s330.h"
#include "driver/ppc/syv682x.h"
#include "driver/tcpm/ps8xxx.h"
+#include "driver/tcpm/tcpci.h"
#include "driver/tcpm/tusb422.h"
#include "driver/temp_sensor/thermistor.h"
#include "fan.h"
@@ -375,6 +376,13 @@ static const struct tcpc_config_t tcpc_config_p1_usb3 = {
.usb23 = USBC_PORT_1_USB2_NUM | (USBC_PORT_1_USB3_NUM << 4),
};
+static const struct usb_mux mux_config_p1_usb3 = {
+ .usb_port = USBC_PORT_C1,
+ .driver = &tcpci_tcpm_usb_mux_driver,
+ .hpd_update = &ps8xxx_tcpc_update_hpd_status,
+ .next_mux = NULL,
+};
+
static enum usb_db_id usb_db_type = USB_DB_NONE;
/******************************************************************************/
@@ -509,8 +517,10 @@ void board_reset_pd_mcu(void)
{
/* No reset available for TCPC on port 0 */
/* Daughterboard specific reset for port 1 */
- if (usb_db_type == USB_DB_USB3)
+ if (usb_db_type == USB_DB_USB3) {
ps8815_reset();
+ usb_mux_hpd_update(USBC_PORT_C1, 0, 0);
+ }
}
uint16_t tcpc_get_alert_status(void)
@@ -663,8 +673,7 @@ DECLARE_HOOK(HOOK_INIT, baseboard_init, HOOK_PRIO_DEFAULT);
static void config_db_usb3(void)
{
tcpc_config[USBC_PORT_C1] = tcpc_config_p1_usb3;
- /* USB-C port 1 has an integrated retimer */
- usb_muxes[USBC_PORT_C1].next_mux = NULL;
+ usb_muxes[USBC_PORT_C1] = mux_config_p1_usb3;
}
/*