servod: introduce i2c_reg_pin

This change introduces a driver to toggle specific bits on a i2c
register. The first usage is checking the PP1_EN bit on the PPC on
grunt.

BUG=b:173059305

TEST=sudo servod -b grunt // servo v4
     dut-control ppc_pp1_en
ppc_pp1_en:on
     dut-control ppc_pp1_en:off
     dut-control ppc_pp1_en
ppc_pp1_en:off
     dut-control ppc_pp1_en:on
     dut-control ppc_pp1_en
ppc_pp1_en:on

Change-Id: I20599c594fe977d587cc011a821cd647eea8b20d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/hdctools/+/2538578
Commit-Queue: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Tested-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Reviewed-by: Matthew Blecker <matthewb@chromium.org>
3 files changed
tree: 223dc93a0eb9fed50936c5fb34a190ab82fe2dca
  1. .gitignore
  2. LICENSE
  3. Makefile
  4. OWNERS
  5. README.md
  6. beaglebone/
  7. chromeos/
  8. defs/
  9. docs/
  10. getversion.sh
  11. include/
  12. lib/
  13. navbar.md
  14. polld/
  15. serial_server/
  16. servo/
  17. setup.py
  18. src/
  19. test/
  20. usbkm232/
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