Twinkie v2: Changes to support Twinkie v2.1 HW design.

1) Removes the 1.22 magic number multiplier.  This was originally added
   to compensate for bias caused by the ADC sampling capacitor.
   Now that we have a input cap on the ADC pin, we use the true ADC value.
2) CC_EN lines are now active low
3) VBUS voltage calibration is no longer run on each sample
4) VBUS oversampling is enabled for better accuracy (more effective ADC bits)

BUG=b:287131048

TEST=build and flash the image.  Validate Twinkie v2.1 reports expected
     measurement values, especially for VBUS, CC1, and CC2
    `west build -p always twinkie_v2`
    `sudo dfu-util -a 0 -s 0x8000000:leave -D build/zephyr/zephyr.bin`

Change-Id: I4c7c06fd4a3cd2fb250d8b33890a1664e9dddb00
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/hdctools_firmware/+/5924152
Auto-Submit: Christopher Buck <cmbuck@google.com>
Tested-by: Christopher Buck <cmbuck@google.com>
Reviewed-by: Brian Nemec <bnemec@google.com>
Reviewed-by: zhi cheng yuan <jasonyuan@chromium.org>
3 files changed
tree: 2e9da73ff8d2b5ee62132b5974c99426130522dd
  1. scripts/
  2. zephyr_projects/
  3. DIR_METADATA
  4. OWNERS
  5. README.md
README.md

hdctools_firmware: Chrome OS Hardware Debug & Control Tools Firmware

This repository contains source code and documentation for the ChromeOS HDC Tool's firmware which exist outside of the Chroot environment.

Zephyr Projects

  • Starfish