summaryrefslogtreecommitdiff
path: root/common/usbc/usb_sm.c
diff options
context:
space:
mode:
authorAyushee <ayushee.shah@intel.com>2020-06-16 13:55:08 -0700
committerCommit Bot <commit-bot@chromium.org>2020-06-26 09:30:36 +0000
commitd8c83aa6b30658ccb8d8ef1e46cc5d30dc491ebe (patch)
treed0c870e4d524ed59ac17e68eb42e41d6c7baafe3 /common/usbc/usb_sm.c
parentc0cee430c75fd428876416c7b3ede705c19dce0f (diff)
downloadchrome-ec-d8c83aa6b30658ccb8d8ef1e46cc5d30dc491ebe.tar.gz
usb_pd: Remove pd_cable dependent Thunderbolt code from common code
1. Separated the common functions needed to check for port/cable's Thunderbolt mode compatibility back into TCPMv1. 2. Refactored the common Thunderbolt mode functions using pd_cable structure for mode information by adding a. Generic function that returns the Discover Mode response of specified SVID. b. Thunderbolt specific functiion that returns Discover Mode response of Intel SVID. 3. Removed the redundant pd_cable structure from DRP state machine policy engine. BUG=b:158294748 b:150611251 BRANCH=None TEST=1. Able to enter into Thunderbolt mode on TCPMv1 Change-Id: I30c8f1a007228408e08520502db00601ca3a2521 Signed-off-by: Ayushee <ayushee.shah@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2249020 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'common/usbc/usb_sm.c')
-rw-r--r--common/usbc/usb_sm.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/common/usbc/usb_sm.c b/common/usbc/usb_sm.c
index fbc227ded5..99bed2b1bb 100644
--- a/common/usbc/usb_sm.c
+++ b/common/usbc/usb_sm.c
@@ -191,29 +191,3 @@ void run_state(const int port, struct sm_ctx *const ctx)
call_run_functions(port, internal, ctx->current);
internal->running = false;
}
-
-/* TODO (b/148528713): Need to enable Thunderbolt-compatible mode on TCPMv2 */
-union tbt_mode_resp_cable get_cable_tbt_vdo(int port)
-{
- union tbt_mode_resp_cable cable_resp = {
- .raw_value = 0,
- };
-
- return cable_resp;
-}
-
-union tbt_mode_resp_device get_dev_tbt_vdo(int port)
-{
- union tbt_mode_resp_device dev_resp = {
- .raw_value = 0,
- };
-
- return dev_resp;
-}
-
-enum tbt_compat_rounded_support get_tbt_rounded_support(int port)
-{
- enum tbt_compat_rounded_support tbt_round = 0;
-
- return tbt_round;
-}