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.