cr50: use KeepAlive field where possible

Ti50 and Cr50 are adding a devoted keepalive field to rdd output, so you
can check the actual rdd state while keepalive is enabled. This change
modifes the ccd keepalive handling to use the new output when possible.

BUG=b:186005742
TEST=manual
	# Run all commands with 0.5.9 and TOT with crrev/c/2844339
	dut-control cr50_testlab:open
	dut-control ccd_keepalive_en:on ccd_keepalive_en
		ccd_keepalive_en:on
	dut-control ccd_keepalive_en:off ccd_keepalive_en
		ccd_keepalive_en:off

	# Verify it works with locked ccd
	dut-control cr50_uart_cmd:'ccd lock'
	dut-control ccd_keepalive_en:on ccd_keepalive_en
		ccd_keepalive_en:off
	dut-control ccd_keepalive_en:off ccd_keepalive_en
		ccd_keepalive_en:off

Change-Id: I932036e4a7996790c09bf8286bc201895e5c51d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/hdctools/+/2844776
Tested-by: Mary Ruthven <mruthven@chromium.org>
Commit-Queue: Mary Ruthven <mruthven@chromium.org>
Reviewed-by: Namyoon Woo <namyoon@chromium.org>
1 file changed
tree: 03dcd469f274bfc8edacf4e7761626fefdc77964
  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