Removed few VIF properties which are being hardcoded Updated the script to parse source VIF XML and add information to the output Added optional Kconfig option to configure custom source VIF XML path Cleaned up the code Signed-off-by: Madhurima Paruchuri <mparuchuri@google.com>
19 lines
430 B
Python
19 lines
430 B
Python
#!/usr/bin/env python3
|
|
|
|
# Copyright (c) 2022 The Chromium OS Authors
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
"""This file contains PDO constants defined to be used by generate_vif.py"""
|
|
|
|
# PDO
|
|
PDO_TYPE_FIXED = 0
|
|
PDO_TYPE_BATTERY = 1
|
|
PDO_TYPE_VARIABLE = 2
|
|
PDO_TYPE_AUGUMENTED = 3
|
|
|
|
PDO_TYPES = {
|
|
PDO_TYPE_FIXED: "Fixed",
|
|
PDO_TYPE_BATTERY: "Battery",
|
|
PDO_TYPE_VARIABLE: "Variable",
|
|
PDO_TYPE_AUGUMENTED: "Augmented",
|
|
}
|