commit | 0bf8416a4eb7c0b15bb32a985ca3d37663d606f2 | [log] [tgz] |
---|---|---|
author | Daisuke Nojiri <dnojiri@chromium.org> | Thu Feb 01 00:52:15 2024 |
committer | Abhishek Pandit-Subedi <abhishekpandit@google.com> | Fri Feb 02 17:44:42 2024 |
tree | 11e0e629d8896d5814c1a8b9c1a94bc493cb5eee | |
parent | 6e2dbdddfe6e602dc0196cf0041a15f7363ce8bb [diff] |
Fix code style BUG=b:319124515 TEST=make local_tests && make um_ppm Change-Id: Ib242a4ca70437c922119e164a27efccde475220c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/usb/um_ppm/+/5255581 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Abhishek Pandit-Subedi <abhishekpandit@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.