commit | e2628f18285cac716c020781433481fc7e587e77 | [log] [tgz] |
---|---|---|
author | Abhishek Pandit-Subedi <abhishekpandit@google.com> | Thu Feb 01 00:57:05 2024 |
committer | Abhishek Pandit-Subedi <abhishekpandit@google.com> | Fri Feb 02 17:44:42 2024 |
tree | 6863ba2f2ea2570ae1e0e7c303de96afdc5a316b | |
parent | 0bf8416a4eb7c0b15bb32a985ca3d37663d606f2 [diff] |
Fixup ppm_tests missing include BUG=b:319124643 TEST=make local_tests Change-Id: Id0ebba8b0deb25cfa2dba149317a3f297f75d8f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/usb/um_ppm/+/5255582 Tested-by: Abhishek Pandit-Subedi <abhishekpandit@google.com> Reviewed-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.