summaryrefslogtreecommitdiff
path: root/common/system.c
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-11-09 15:57:58 -0600
committerCommit Bot <commit-bot@chromium.org>2021-11-18 04:49:17 +0000
commitdc4cc17a81f4a483ffde65fa73575c0f2225b584 (patch)
tree95b9807356b2badf50bdc89b384715336cf26801 /common/system.c
parente9f0c32f55805597efa4d1e7eae52316a02287e3 (diff)
downloadchrome-ec-dc4cc17a81f4a483ffde65fa73575c0f2225b584.tar.gz
i2c_controller: remove Protect TCPC I2C tunnels as part of EC_REBOOT_DISABLE_JUMP
This removes the support added in 9e4474e561ec165cf24e8aa249c2aeeed8e7f1ef. BUG=b:200823466 TEST=make buildall -j Change-Id: I81745d55783e69a345a41c55b126f196b20d952a Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3273401 Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Diffstat (limited to 'common/system.c')
-rw-r--r--common/system.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/common/system.c b/common/system.c
index c0d5e13fc5..e8b08b69f2 100644
--- a/common/system.c
+++ b/common/system.c
@@ -350,36 +350,6 @@ const uint8_t *system_get_jump_tag(uint16_t tag, int *version, int *size)
return NULL;
}
-#if defined(CONFIG_USB_POWER_DELIVERY) && !defined(CONFIG_USB_PD_TCPM_STUB) && \
- defined(CONFIG_I2C_CONTROLLER)
-extern const struct tcpc_config_t tcpc_config[];
-
-static void system_protect_tcpc_i2c_ports(void)
-{
- uint32_t locked = system_is_locked();
- int i;
-
- /*
- * If WP is not enabled i.e. system is not locked leave the tunnels open
- * so that factory line can do updates without a new RO BIOS.
- */
- if (!locked) {
- CPRINTS("System unlocked, TCPC I2C tunnels may be unprotected");
- return;
- }
-
- for (i = 0; i < CONFIG_USB_PD_PORT_COUNT; i++)
- i2c_passthru_protect_port(tcpc_config[i].i2c_host_port);
-}
-
-#else
-
-static void system_protect_tcpc_i2c_ports(void)
-{
-}
-
-#endif
-
void system_disable_jump(void)
{
disable_jump = 1;
@@ -911,7 +881,6 @@ static int handle_pending_reboot(enum ec_reboot_cmd cmd)
/* That shouldn't return... */
return EC_ERROR_UNKNOWN;
case EC_REBOOT_DISABLE_JUMP:
- system_protect_tcpc_i2c_ports();
system_disable_jump();
return EC_SUCCESS;
#ifdef CONFIG_HIBERNATE
@@ -1188,7 +1157,6 @@ static int command_sysjump(int argc, char **argv)
return EC_ERROR_PARAM1;
#endif
} else if (!strcasecmp(argv[1], "disable")) {
- system_protect_tcpc_i2c_ports();
system_disable_jump();
return EC_SUCCESS;
}