commit | 4bea82cfd32a94d9c913f55c4a6d9fec1df244cb | [log] [tgz] |
---|---|---|
author | Abhishek Pandit-Subedi <abhishekpandit@google.com> | Thu Feb 01 00:30:32 2024 |
committer | Abhishek Pandit-Subedi <abhishekpandit@google.com> | Fri Feb 02 17:44:42 2024 |
tree | 76813f91f0620408efc5a6c886cc2e71571d6aa9 | |
parent | 5b4c455958683194e5f0db130fbd47ff276e7507 [diff] |
Add EC clang format file To aid in migration to EC code base, adopt the EC clang format rules. BUG=b:319124515 TEST=None Change-Id: If612c3df7db8b8c8226a4dcea99813f16292cf5d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/usb/um_ppm/+/5255579 Tested-by: Abhishek Pandit-Subedi <abhishekpandit@google.com> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
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.