usb-c: Generate USB-C connector VIF policies XML file
Generates XML file containing VIF policies by reading the device tree using EDT.pickle generated during build This script writes a subset of general and sink-pdo VIF policies in output file This script gets invoked during build if enabled through kconfig The generated XML containing USB-C VIF policies could be used by USB PD/Type-C analysers/testers to understand USB-C properties and perform tests accordingly Signed-off-by: Madhurima Paruchuri <mparuchuri@google.com>
This commit is contained in:
parent
bc31bad0ff
commit
fa738b0f74
8 changed files with 398 additions and 2 deletions
|
@ -33,6 +33,12 @@ config USBC_STATE_MACHINE_CYCLE_TIME
|
|||
The USB-C state machine is run in a loop and the cycle time is the
|
||||
delay before running the loop again.
|
||||
|
||||
config BUILD_OUTPUT_VIF
|
||||
bool "Generate VIF policies of USB-C in XML format"
|
||||
depends on DT_HAS_USB_C_CONNECTOR_ENABLED
|
||||
help
|
||||
Generate XML file containing VIF policies during project build.
|
||||
|
||||
module = USBC_STACK
|
||||
module-str = usbc stack
|
||||
source "subsys/logging/Kconfig.template.log_config"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue