From f5121aa5b762a68e9e2bca3c4c132cb2ffc9cfdb Mon Sep 17 00:00:00 2001 From: Daisuke Nojiri Date: Thu, 20 Jun 2019 12:01:08 -0700 Subject: topology: Add USB2 & USB3 connectivity info to tcpc_config_t Intel SoC needs which USB2/3 ports are assigned to which Type-C ports. This patch adds USB2 and USB3 port numbers to tcpc_config_t so that EC_CMD_LOCATE_CHIP can return it to the host. Signed-off-by: Daisuke Nojiri BUG=b/134614710 BRANCH=none TEST=TBD Change-Id: I10206dde4d71ac6e40a71c65333db4edd3c81e7a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1669880 Reviewed-by: Vijay P Hiremath Reviewed-by: Aseda Aboagye Reviewed-by: Daisuke Nojiri Tested-by: Daisuke Nojiri Auto-Submit: Daisuke Nojiri Commit-Queue: Daisuke Nojiri --- include/usb_pd_tcpm.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/usb_pd_tcpm.h') diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h index 9e5f5689de..9ca23e7ecb 100644 --- a/include/usb_pd_tcpm.h +++ b/include/usb_pd_tcpm.h @@ -334,6 +334,13 @@ struct tcpc_config_t { const struct tcpm_drv *drv; /* See TCPC_FLAGS_* above */ uint32_t flags; +#ifdef CONFIG_INTEL_VIRTUAL_MUX + /* + * 0-3: Corresponding USB2 port number (1 ~ 15) + * 4-7: Corresponding USB3 port number (1 ~ 15) + */ + uint8_t usb23; +#endif }; #ifndef CONFIG_USB_PD_TCPC_RUNTIME_CONFIG -- cgit v1.2.1