Support firmware update for Realtek devkit

Add support for firmware update for the RTS5453 devkit.

BUG=b:303919041

Change-Id: I0cbf47f48161831e9a1beefcd04eed1fd383ffc6
3 files changed
tree: d58352f67b7cb7eb551e656a2a52ba57e42b407e
  1. include/
  2. LICENSE
  3. main.c
  4. Makefile
  5. platform_usermode.c
  6. README.md
  7. rts5453.c
  8. rts5453.h
  9. smbus_usermode.c
  10. smbus_usermode.h
README.md

Usermode PPM implementation

Usermode UCSI PPM implementation for evaluation and testing usage. Try using this with the ucsi_um_test kernel driver.

Architecture

┌─────────┐
│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.