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.

u-boot logo image problem on omap4430 based custom board

Hi All,


I am working on u-boot level.. I am trying to display the logo image on WVGA display (at u-boot).
the following procedure i used-

- WVGA resolution- 864*480
- Light sensor, Deserializer, and KCD display ,i am using.
- Changed the board file(board/omap4430xxxx/oma4430xxxx.c) of u-boot according to arch/arm/mach-omap2/board-xxxxx-panel.c, drivers/misc/kcd.c, drivers/video/omap2/display/panel-tc6xxxxx.c in kernel.

=>Changes in u-boot/board/omap4430xxxx/omap4430xxxx.c
  -> #include "logo.h"   //added logo header file with 864*480 resolution
 
  -> /* Panel config */
#define PANEL_WIDTH     864
#define PANEL_HEIGHT    480
#define DISPC_HFP       value //mention in "kernel/arch/arm/mach-omap2/board-xxxxx-panel.c"
#define DISPC_HSW       value
#define DISPC_HBP       value
#define DISPC_VFP       value
#define DISPC_VSW       value
#define DISPC_VBP       value
#define BPP             24
#define LANES           2

/* PLL config */
#define LCK_DIV         1
#define PCK_DIV         2
#define REGM             value // mention in "kernel/arch/arm/mach-omap2/board-xxxxx-panel.c"
#define REGN            value
#define REGM_DISPC      value
#define REGM_DSI        value

  -> Register value array mentioned in kernel/drivers/misc/kcd.c

   -> Deserializer register intialization value mentioned in kernel/drivers/video/omap2/display/panel-tc6xxxxx.c

 And i have taken a sample logo pic of resolution 864*480 and converted into logo.h file using GIMP tool.

Can any1 guide me plz what else i have to add or anything related this? Logo is not appearing at u-boot stage rather than its showing up black screen and passes to kernel and hence home screen comes up..

your reply would be helpful for me.

with best regards
-Kaushal gupta

  • Hi Kaushal,

    Is your display  connected with MIPI interface?

    also check this thread, it may have something that you have missed.

    http://e2e.ti.com/support/omap/f/849/t/107466.aspx?pi239031352=1

    Regards,

    Boyko

  • Hi Boyko,


    thanks for your help. i really appreciate it. yes, MIPI interface is connected.
    previously it was of 800x600 resolution and with 800x600 logo image, it was working.

    Now i changed the display, new display resolution is of 960x540. and configured accordingly.

    with the new display, if i use 800x600 pixel image, its working fine and showing up logo except logo is not in center(thats b'coz of mismatching the display resolution and the logo image resolution). and if i use 960x540 pixel image (or any other pixel image except 800x600 resolution) on new display, it is showing scrambling/distorted logo.

    my question is-
    ->is it a problem related to DSI video mode timing?

    #define PANEL_WIDTH     960
    #define PANEL_HEIGHT    540
    #define DISPC_HFP       114
    #define DISPC_HSW       7
    #define DISPC_HBP       1
    #define DISPC_VFP       2
    #define DISPC_VSW       1
    #define DISPC_VBP       3
    #define BPP             24
    #define LANES           2

    /* PLL config */
    #define LCK_DIV         1
    #define PCK_DIV         2
    #define REGM            355     
    #define REGN            24
    #define REGM_DISPC      8
    #define REGM_DSI        8

    #define LANEMASK1       (0x1F >> (4-LANES))

    /* Configure DSI1 Video Mode Timings */
            dsi_hbp = dispc_to_dsi_clock((DISPC_HBP-1)+(DISPC_HSW-1), BPP, LANES);
            dsi_hfp = dispc_to_dsi_clock((DISPC_HFP-1), BPP, LANES);
            dsi_hsa = 0;
            dsi_tl = dispc_to_dsi_clock((DISPC_HBP + DISPC_HSW + DISPC_HFP + PANEL_WIDTH), BPP, LANES);
            __raw_writel(0xfa20e081, DSI_VM_TIMING1);
            __raw_writel(0x04040117, DSI_VM_TIMING2);
            __raw_writel(0x08400258, DSI_VM_TIMING3);

    =>if it is not the problem then why we are not seeing the correct logo image for different resolution except 800x600.?

    your reply would be very helpful .

    with regards
    -Kaushal

  • Hi Kaushal,

    I think it is  precisely because of the timing, just to test my theory can you try with image with width less then 960px perhaps 950 and 940. That is because the value of the back porch is not enough and the line doesn’t have time to transfer.

    Regards,

    Boyko

  • Hi Boyko,


    Not working by changing the image to 950 or 940. if i say more precisely, it was better before.

    Do i need to change the back porch value for H and V ?? as i have said to u, except 800x600, its not showing the correct logo for any different pixel.

    using 960x540px logo image, display is showing---->
    if u need more info, plz lemme know.

    Regards,
    -Kaushal

  • Hi Kaushal,

    So now Logo is displayed,  meaning its all about the correct video timing. Are the values above considered from DSI calculation sheet? And can you provide more details about your panel ( timing restriction and requirements)

    Regards,

    Boyko