This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA2PXEVM: Swap HDMI_PHY TX polarity through memory mapped register

Part Number: TDA2PXEVM


Our custom board have swapped the polarity of the HDMI_PHY clock and data pads to the HDMI port interface.
Is it possible to swap the polarity of the HDMI_PHY pads through registers?

I have searched the data sheet and cannot find the appropriate register.

Searching through the source code of PDK shows that it is possible through:

    /* Swaps HDMI output polarity */
    UInt32* HDMI_PHY_PAD_CONFIG_CONTROL = (UInt32*) 0x5804030C;
    *HDMI_PHY_PAD_CONFIG_CONTROL |= 0x78000000;

However, doing the above does not seem to work.

With this may I ask information/technical reference if swapping of HDMI_PHY pads polarity is possible through register access?

  • Hi,

    Do you have to change the polarity of the clock also?
    If so, can you try to do it from the driver by changing as below
    in file <pdk_install_dir>\packages\ti\drv\vps\src\vpslib\hal\src\vpshal_dssHdmi.c
    in function vpshal_HdmiPhyPowerOn
    set field HDMI_PAD_CONFIG_CONTROL_FLIP_P_N_ORDER_CLK to 0.

    To change the polarity of the data lanes you can call the dctrl ioctl IOCTL_VPS_DCTRL_HDMI_FLIP_DATA_P_N_ORDER from application.
    But for testing you may call the function vpsDrvDctrlHdmiFlipDataPnOrder(), at the end of vpshal_HdmiPhyPowerOn() mentioned above.

    Can you try these and update?

    Regards,
    Prasad
  • Hello Prasad,

    The revisions you mentioned above resolved my inquiries.

    Thank you for the great support.