Add support for FruitPie ec uart capture controls.

BUG=none
TEST=start servod
dut-control ec_uart_capture:on ec_uart_cmd:gpioget ec_uart_stream

Change-Id: Ieda3865fa8092d1f9907af15fdf2d742b6978c37
Reviewed-on: https://chromium-review.googlesource.com/197057
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
diff --git a/servo/data/fruitpie.xml b/servo/data/fruitpie.xml
index bd37b6e..064ced6 100644
--- a/servo/data/fruitpie.xml
+++ b/servo/data/fruitpie.xml
@@ -5,6 +5,44 @@
   </include>
   <!-- STM32 UART -->
   <control>
+    <name>ec_uart_capture</name>
+    <doc>ec_uart_capture</doc>
+    <params subtype="uart_capture" interface="2" drv="uart"
+            map="onoff"></params>
+  </control>
+  <control>
+    <name>ec_uart_cmd</name>
+    <doc>Set to send command to EC UART. Get to obtain the matched
+    results with the regular expression of ec_uart_regexp.</doc>
+    <params subtype="uart_cmd" interface="2" drv="ec"
+    input_type="str"></params>
+  </control>
+  <control>
+    <name>ec_uart_multicmd</name>
+    <doc>Set to send multiple commands to EC UART.</doc>
+    <params subtype="uart_multicmd" interface="2" drv="ec"
+    input_type="str" cmd="set"></params>
+  </control>
+  <control>
+    <name>ec_uart_regexp</name>
+    <doc>List of regular expressions which matches the response of
+    ec_uart_cmd.</doc>
+    <params subtype="uart_regexp" interface="2" drv="ec"
+    input_type="str"></params>
+  </control>
+  <control>
+    <name>ec_uart_stream</name>
+    <doc>Ec uart stream collected while ec_uart_capture is set to 'on'</doc>
+    <params cmd="get" subtype="uart_stream" interface="2" drv="uart"></params>
+  </control>
+  <control>
+    <name>ec_uart_timeout</name>
+    <doc>Timeout value for waiting EC UART response of issuing an
+    EC command.</doc>
+    <params subtype="uart_timeout" interface="2" drv="ec"
+    input_type="float"></params>
+  </control>
+  <control>
     <name>ec_uart_pty</name>
     <doc>Pseudo-terminal (pty) thats connected to uart console</doc>
     <params cmd="get" interface="2" subtype="pty" drv="uart">