Integrate Video PHY Controller /HDMI GT Subsystem Driver for HDMI 1.4/2.0 TX Subsystem Use - 3.2 English

HDMI 1.4/2.0 Transmitter Subsystem Product Guide (PG235)

Document ID
PG235
Release Date
2023-10-18
Version
3.2 English

Because the HDMI 1.4/2.0 TX Subsystem is closely coupled with the Video PHY Controller /HDMI GT Subsystem, the following example code demonstrates how a Video PHY Controller /HDMI GT Subsystem can be used in your application.

Figure 1. Application Example Code

To integrate and use the Video PHY Controller /HDMI GT Subsystem for the HDMI 1.4/2.0 TX Subsystem in the application code, the following steps must be followed:

  1. Include the subsystem header file xvphy.h that defines the subsystem object.
  2. Declare and allocate space for a Video PHY Controller HDMI GT Subsystem instance in your application code.

    Example:

    XVphy Vphy;
  3. In the Video PHY Controller /HDMI GT Subsystem instance, there is a metadata structure to store its hardware configuration. Declare a pointer variable in the application code to point to the instance:
    XVphy_Config *XVphyCfgPtr;
  4. For each Video PHY Controller /HDMI GT Subsystem instance, the above data structure needs to be initialized based on its hardware configuration, which is passed through meta-structure from xparameters.h uniquely identified by the device ID.

    To initialize the Video PHY Controller /HDMI GT Subsystem , call the following two API functions:

    XVphy_Config *XVphy_LookupConfig(u16 DeviceId);
    u32 XVphy_HdmiInitialize(XVphy *InstancePtr,
                             u8 QuadId, 
                             XVphy_Config *CfgPtr,
                             u32 SystemFrequency);

    The Device ID can be found in xparameters.h:

    XPAR_[Video PHY Controller Instance Name in IPI]_DEVICE_ID

    Similarly, SystemFrequency is the system frequency, which can also be found in xparameters.h

Note:
  • AMD recommends initializing the PHY controller after the HDMI 1.4/2.0 TX Subsystem initialization is completed.
  • Registering the PHY Controller interrupts are part of system application integration. Steps are shown in the previous section and not repeated here.