vif: Update VIF generator to Revision 1.40, Version 1.0 of the spec

Update the Vendor Information File generator so that it complies
with Revision 1.40, Version 1.0 of the spec.

The VIF files are generated when the board is built.
So, make -j BOARD=<board> will create build/<board>/<board>_vif.txt

A VIF can be generated manually after the board is built with
build/<board>/util/genvif -b <board name> -o <out directory>

BUG=b:131087690
BRANCH=none
TEST=manual
  Generate VIF for Atlas and checked fields.

Signed-off-by: Sam Hurst <shurst@chromium.org>

Change-Id: Iaa1eaf1f01f9d36ad3afd2818ebe81359b8531f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1577739
Tested-by: Sam Hurst <shurst@google.com>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Sam Hurst <shurst@google.com>
This commit is contained in:
Sam Hurst 2019-04-22 11:12:08 -07:00 committed by Commit Bot
parent b8723d58a8
commit 5ddfe10ed4
5 changed files with 852 additions and 377 deletions

View File

@ -71,6 +71,9 @@
#define CONFIG_WP_ALWAYS
#define CONFIG_FLASH_READOUT_PROTECTION
/* Inform VIF generator that this board is an Alt Mode Adapter */
#define CONFIG_USB_ALT_MODE_ADAPTER
#ifndef __ASSEMBLER__
/* Timer selection */

View File

@ -56,6 +56,9 @@
#define CONFIG_WP_ALWAYS
#define CONFIG_FLASH_READOUT_PROTECTION
/* Inform VIF generator that this board is an Alt Mode Adapter */
#define CONFIG_USB_ALT_MODE_ADAPTER
#ifndef __ASSEMBLER__
/* Timer selection */

View File

@ -66,6 +66,9 @@
#define CONFIG_WP_ALWAYS
#define CONFIG_FLASH_READOUT_PROTECTION
/* Inform VIF generator that this board is an Alt Mode Adapter */
#define CONFIG_USB_ALT_MODE_ADAPTER
#ifndef __ASSEMBLER__
/* Timer selection */

View File

@ -3976,6 +3976,52 @@
/* Enable PCIE tunneling if Thunderbolt-Compatible mode is enabled*/
#undef CONFIG_USB_PD_PCIE_TUNNELING
/*
* The following two macros are ASCII text strings that matches what appears
* in the USB-IF Product Registration form for this device. These macros are
* used during VIF generation and they form the product name in the
* USB Integrators List.
*/
#undef CONFIG_USB_PD_MODEL_PART_NUMBER
#undef CONFIG_USB_PD_PRODUCT_REVISION
/*
* Should be defined if the device is a TypeC Alt Mode Adapter. This macro
* is used during VIF generation.
*/
#undef CONFIG_USB_ALT_MODE_ADAPTER
/*
* A text string, provided by the USB-IF. This macro is used during VIF
* generation.
*/
#undef CONFIG_USB_PD_TID
/*
* An ASCII text string that must correspond with the port label given on the
* device picture submitted to USB-IF by the Vendor along with the VIF. This
* macro is used during VIF generation.
*/
#undef CONFIG_USB_PD_PORT_LABEL
/*
* Define if Get_Manufacturer_Info request PD message is supported.
* Used during VIF generation.
*/
#undef CONFIG_USB_PD_MANUFACTURER_INFO
/*
* Define if both Security_Request and Security_Response PD messages are
* supported. Used during VIF generation.
*/
#undef CONFIG_USB_PD_SECURITY_MSGS
/*
* The number of non-removable batteries in the device. Used duing VIF
* generation.
*/
#undef CONFIG_NUM_FIXED_BATTERIES
/*
* Track VBUS level in TCPC module. This will only be needed if we're acting
* as an external TCPC.
@ -4194,19 +4240,6 @@
/* USB Device version of product */
#undef CONFIG_USB_BCD_DEV
/*
* Used during generation of VIF for USB Type-C Compliance Testing.
* Indicates whether the UUT can communicate with USB 2.0 or USB 3.1 as a host
* or as the Downstream Facing Port of a hub.
*/
#undef CONFIG_VIF_TYPE_C_CAN_ACT_AS_HOST
/*
* Used during generation of VIF for USB Type-C Compliance Testing.
* Indicates whether the UUT has a captive cable.
*/
#undef CONFIG_VIF_CAPTIVE_CABLE
/*****************************************************************************/
/* Compile chip support for the USB device controller */

File diff suppressed because it is too large Load Diff