servo_micro: add delay after setting usbpd_uart_routing

Servo init tries to use the cr50 console immediately after setting
usbpd_uart_routing to glados. It doesn't wait long enough for the
console to start working. This change adds a delay in the set function
so the dut-control command will wait long enough for the console to
become functional before returning.

BUG=b:122688221
BRANCH=none
TEST=start servo with cr50 uart. Make sure cr50_version prints ok. Run
'dut-control usbpd_uart_routing:off sleep:1 usbpd_uart_routing:glados
cr50_version' verify cr50_version doesn't timeout

Change-Id: I1f5abf512c16025a56e3acc324a41b662c500b45
Signed-off-by: Mary Ruthven <mruthven@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1444853
Commit-Ready: Mary Ruthven <mruthven@chromium.org>
Tested-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
1 file changed