Qiang Li - Mpu Se

How to change IMX53 VGA HSYNC from DI1_PIN7 to DI1_PIN4 -blog archive

Discussion created by Qiang Li - Mpu Se Employee on Feb 17, 2012
Latest reply on May 3, 2013 by augusto

    For IMX53, VGA output can be support only from DI1, so only DI1 pins can be used for VGA IOMUX.
    As default, the freescale BSP used DI1_PIN7 and DI1_PIN8 for VGA HSYNC and VSYNC, but all the DI pins are configurable, so it is OK for the customer to use DI1_PIN4 as the VGA HSYNC.

    Except the IOMUX setting, BSP code should be updated for such modification.

WinCE code modification (In file bspdisplay.cpp):

Modify code from:

    #define DI_COUNTER_BASECLK  0
    #define DI_COUNTER_IHSYNC   1
    #define DI_COUNTER_OHSYNC   2
    #define DI_COUNTER_OVSYNC   3
    #define DI_COUNTER_ALINE    4
    #define DI_COUNTER_ACLOCK   5

    #define DI_COUNTER_VGA_HSYNC   7
    #define DI_COUNTER_VGA_VSYNC   8

    #define DI_TVE_WAVEFORM           6

To

    #define DI_COUNTER_BASECLK  0
    #define DI_COUNTER_IHSYNC   1
    #define DI_COUNTER_OHSYNC   2
    #define DI_COUNTER_OVSYNC   3
    #define DI_COUNTER_ALINE    5
    #define DI_COUNTER_ACLOCK   6

    #define DI_COUNTER_VGA_HSYNC   4
    #define DI_COUNTER_VGA_VSYNC   8

    #define DI_TVE_WAVEFORM           7

 

Note: When one waveform needs base on another waveform, then its DI_PIN/DI_COUNT number must be bigger than the based one. For example, the VSYNC signal always needs base on the HSYNC signal, so the DI_PIN/DI_COUNT number of VSYNC must be bigger than the number of HSYNC.

 

For Linux code (ipu_disp.c):

Original Attachment has been moved to: ipu_disp_old.c.zip

Original Attachment has been moved to: ipu_disp_new.c.zip

Outcomes