active_v4_device: use ec_uart_en for all servos

C2D2 needs to be able to disable the EC UART output to be able to set
the active_v4_device to ccd_cr50.

Add a dummy ec_uart_en control, so we can use the standard ec_uart_en
logic for active_v4_device. We'll add the actual commands to control the
EC UART output later. This will work for setting the active v4 device to
c2d2, which is the normal mode. You won't be able to set the device to
ccd_cr50.

The C2D2 CPU uart isn't connected to the board. Make cpu_uart_en a na
control.

BUG=b:168320602,b:175428947
TEST=manual
	# On Dedede with c2d2 + ccd
	# Open CCD and check level
	dut-control cr50_ccd_level
		cr50_ccd_level:open
	dut-control active_v4_device:c2d2 ec_board \
	    c2d2_ec_boot_mode_uut ec_uart_en \
	    active_v4_device
		ec_board:dedede
		ec_uart_en:on
		active_v4_device:c2d2

	dut-control active_v4_device:ccd_cr50  \
	    c2d2_ec_boot_mode_uut ec_uart_en \
	    active_v4_device ccd_cr50.ec_board
	       raises an error about not being able to set ec_uart_en
	       off

	# On a board with servo micro + ccd
	# Open CCD and check level
	dut-control cr50_ccd_level
		cr50_ccd_level:open
	dut-control active_v4_device:servo_micro ec_board \
	    active_v4_device active_v4_device:ccd_cr50  \
	    active_v4_device ccd_cr50.ec_board
		ec_board:helios
		active_v4_device:servo_micro
		active_v4_device:ccd_cr50
		ccd_cr50.ec_board:helios

Change-Id: Ia7160740703fe523fdc39ea6ca9c2fb0630729fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/hdctools/+/2587537
Reviewed-by: Evan Green <evgreen@chromium.org>
Reviewed-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Tested-by: Evan Green <evgreen@chromium.org>
Commit-Queue: Mary Ruthven <mruthven@chromium.org>
3 files changed
tree: ad81ace8f6e1c9245cd0a2f5567937a915c1d5cb
  1. beaglebone/
  2. chromeos/
  3. defs/
  4. docs/
  5. include/
  6. lib/
  7. polld/
  8. serial_server/
  9. servo/
  10. src/
  11. test/
  12. usbkm232/
  13. .gitignore
  14. getversion.sh
  15. LICENSE
  16. Makefile
  17. navbar.md
  18. OWNERS
  19. README.md
  20. setup.py
README.md

hdctools: Chrome OS Hardware Debug & Control Tools

This repository contains source code and documentation for the Servo debug boards. The tools in this repository require the full CrOS chroot, while the Standalone hdctools can be used without the chroot.

Servo

servod

Closed Case Debugging (CCD)

Power Measurement

Resources