summaryrefslogtreecommitdiff
path: root/baseboard
diff options
context:
space:
mode:
authorRuibin Chang <ruibin.chang@ite.com.tw>2020-03-31 18:34:21 +0800
committerCommit Bot <commit-bot@chromium.org>2020-04-07 07:12:29 +0000
commit5e61cf5d90823c422004e96b120a0660919da91b (patch)
tree9a01443e05422a4794cb0476190fc21b88ae4382 /baseboard
parent20b5fdd6fc75cae0784adc44b844cf74063b34ba (diff)
downloadchrome-ec-5e61cf5d90823c422004e96b120a0660919da91b.tar.gz
it83xx/gpio: disable unused cc port module
To prevent cc pins leakage and cc pins can be used as gpio. We will check if the chip supported tcpc physical port count is more than board active ITE port count. If yes, we will disable unused cc port module. BUG=none BRANCH=none TEST=1) on board it8xxx2_pdevb with chip it81202, check the pd port connection with adapter and dongle when hibernate and resume. adapter: connect dongle: disconnect then re-connect 2) on board it83xx_evb with chip it8320, set cc pins as gpio, check output level when hibernate and resume. Change-Id: I13511741b2e066dd87277db9f71f2b4a9323ad6d Signed-off-by: Ruibin Chang <ruibin.chang@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1994693 Tested-by: Ruibin Chang <Ruibin.Chang@ite.com.tw> Commit-Queue: Ruibin Chang <Ruibin.Chang@ite.com.tw> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r--baseboard/dedede/baseboard.h1
-rw-r--r--baseboard/dragonegg/baseboard.h1
-rw-r--r--baseboard/intelrvp/ite_ec.h1
-rw-r--r--baseboard/octopus/baseboard.h1
4 files changed, 4 insertions, 0 deletions
diff --git a/baseboard/dedede/baseboard.h b/baseboard/dedede/baseboard.h
index accd1376c1..2c0fbe7da3 100644
--- a/baseboard/dedede/baseboard.h
+++ b/baseboard/dedede/baseboard.h
@@ -67,6 +67,7 @@
#define CONFIG_USB_PD_TCPM_ITE_ON_CHIP /* C0: ITE EC TCPC */
#define CONFIG_USB_PD_TCPM_ANX7447 /* C1: ANX TCPC + Mux */
#define CONFIG_BC12_DETECT_PI3USB9201 /* BC 1.2 */
+ #define CONFIG_USB_PD_ITE_ACTIVE_PORT_COUNT 1
#else
#error "Must define a VARIANT_DEDEDE_EC!"
#endif
diff --git a/baseboard/dragonegg/baseboard.h b/baseboard/dragonegg/baseboard.h
index 7365891000..3eff17ba1a 100644
--- a/baseboard/dragonegg/baseboard.h
+++ b/baseboard/dragonegg/baseboard.h
@@ -82,6 +82,7 @@
#define CONFIG_USB_PD_TCPM_TUSB422 /* C1 TCPC: TUSB422 */
#define CONFIG_USB_POWER_DELIVERY
#define CONFIG_USB_PD_TCPMV1
+#define CONFIG_USB_PD_ITE_ACTIVE_PORT_COUNT 2
/*
* TODO (b/111281797): DragonEgg has 3 ports. Only adding support for the port
diff --git a/baseboard/intelrvp/ite_ec.h b/baseboard/intelrvp/ite_ec.h
index 14d9b27370..9fc5def311 100644
--- a/baseboard/intelrvp/ite_ec.h
+++ b/baseboard/intelrvp/ite_ec.h
@@ -11,6 +11,7 @@
/* USB PD config */
#define CONFIG_USB_PD_TCPM_ITE_ON_CHIP
#define CONFIG_USB_PD_VBUS_DETECT_GPIO
+#define CONFIG_USB_PD_ITE_ACTIVE_PORT_COUNT 2
/* Optional feature - used by ITE */
#define CONFIG_IT83XX_FLASH_CLOCK_48MHZ
diff --git a/baseboard/octopus/baseboard.h b/baseboard/octopus/baseboard.h
index 2bbcff6d32..7a22a81f4b 100644
--- a/baseboard/octopus/baseboard.h
+++ b/baseboard/octopus/baseboard.h
@@ -70,6 +70,7 @@
#define I2C_PORT_USB_MUX I2C_PORT_USBC0 /* For MUX driver */
#define I2C_PORT_EEPROM IT83XX_I2C_CH_F
#define I2C_ADDR_EEPROM_FLAGS 0x50
+ #define CONFIG_USB_PD_ITE_ACTIVE_PORT_COUNT 2
/* EC variant determines USB-C variant */
#define VARIANT_OCTOPUS_USBC_ITE_EC_TCPCS