summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2019-06-20 12:29:16 -0700
committerCommit Bot <commit-bot@chromium.org>2019-06-21 22:31:26 +0000
commit11c362df1a73980344da7aa0d62da72945f84c89 (patch)
treeaa15c509eab86cebb5b93e4a4863f7fe2178ed67
parent0b56438581edd5da9dd12f67bf44a95b4f4ed28d (diff)
downloadchrome-ec-11c362df1a73980344da7aa0d62da72945f84c89.tar.gz
servo_v4: Remove the dts console command
Servod now uses the "cc" console command to change the dts mode. So no one uses the "dts" command. Remove it to save the flash space (128 bytes). BUG=b:131840808 BRANCH=servo TEST=Flashed the servo v4 firmware and started servod. Tried: $ dut-control servo_v4_dts_mode servo_v4_dts_mode:on $ dut-control servo_v4_dts_mode:off servo_v4_dts_mode servo_v4_dts_mode:off $ dut-control servo_v4_dts_mode:on servo_v4_dts_mode servo_v4_dts_mode:on Change-Id: I35778ff8975af35e623a9c9c70926264161cff3d Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1669742 Reviewed-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Mary Ruthven <mruthven@chromium.org> Commit-Queue: Jason Clinton <jclinton@chromium.org>
-rw-r--r--board/servo_v4/usb_pd_policy.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/board/servo_v4/usb_pd_policy.c b/board/servo_v4/usb_pd_policy.c
index 3217806308..32a1a046d2 100644
--- a/board/servo_v4/usb_pd_policy.c
+++ b/board/servo_v4/usb_pd_policy.c
@@ -783,32 +783,6 @@ DECLARE_CONSOLE_COMMAND(cc, command_cc,
"off|src|snk|srcdts|snkdts",
"Servo_v4 DTS and CHG mode");
-
-static int command_dts(int argc, char **argv)
-{
- int disable_dts_new;
- int val;
-
- if (argc < 2) {
- print_cc_mode();
- return EC_SUCCESS;
- }
-
- if (!parse_bool(argv[1], &val))
- return EC_ERROR_PARAM2;
-
- disable_dts_new = val ^ 1;
-
- /* Change dts without changing src. */
- do_cc(disable_cc, disable_dts_new, allow_src_mode);
- print_cc_mode();
-
- return EC_SUCCESS;
-}
-DECLARE_CONSOLE_COMMAND(dts, command_dts,
- "off|on",
- "Servo_v4 DTS mode on/off");
-
static void fake_disconnect_end(void)
{
/* Reenable CC lines with previous dts and src modes */