servo_v4: Added dut-control for DTS mode on/off

Servo_v4 has a console command 'dts on|off' which is used to enable or
disable DTS mode. When this mode is disabled, servo_v4 DUT port will
connect to the DUT as a regular SRC UFP. When enabled, it connects as
a DTS which triggers CCD mode to be enabled.

This CL adds a dut-control to access this EC console command. Added
both a getter and a setter method.

TEST=Launch servod for servo_v4. Tested the following:
dut-control servo_v4_dts_mode
dut-control servo_v4_dts_mode:on
dut-control servo_v4_dts_mode:off

Change-Id: I2bce7a70297aa93bbf7b6f4f5faa3291c40b9cfb
Signed-off-by: Scott Collyer <>
Commit-Ready: Scott Collyer <>
Tested-by: Scott Collyer <>
Reviewed-by: Wai-Hong Tam <>
2 files changed