commit | eaa368a15a6ae8ea5df12aefda2ef22efd2a86aa | [log] [tgz] |
---|---|---|
author | Pavan Holla <pholla@chromium.org> | Wed Jan 31 18:07:45 2024 |
committer | Pavan Holla <pholla@chromium.org> | Wed Jan 31 18:58:56 2024 |
tree | 4dcabfd7d3478795c86923d09b7a23139f30bd07 | |
parent | a9b9466165e9c1c761d56eba838bfbe800bab44c [diff] |
ppm_common: Clear prior CCI on error BUG=b:319124783 TEST=make local_tests; um_ppm -v -b 22 -g 1 -l 2 -k /dev/ucsi_um_test-0 Change-Id: Ida277bacff08f03574407bb207de5e6c2fd1c437 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/usb/um_ppm/+/5251769 Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@google.com> Tested-by: Pavan Holla <pholla@google.com>
Usermode UCSI PPM implementation for evaluation and testing usage. Try using this with the ucsi_um_test
kernel driver.
For usermode implementations, we use libi2c and libgpiod to provide an smbus implementation. You will need the right libraries to build:
sudo apt-get install libi2c-dev libgpiod-dev
┌─────────┐ │OPM │ │kernel or│ │cli │ └────┬────┘ │ │ ▼ ┌───────────┐ ┌────────┐ │ PD Driver │ │ ├────►│ │ │ PPM │ ├───────────┤ │ │ │ │ └────────┘ │ I2C Driver│ └───────────┘
The usermode ppm implementation consists of the PPM task, the PD driver and the I2C driver backing it. The OPM will either be a CLI (for locally triggering some functionality) or the ucsi_um_test
kernel module.