Hi All,

I am developing software for DM355 and want to use DVEVM with an digital
LCD (Parallel RGB) by getting the requred signals from DC5 connector. I
edited the "dm355fb_dlcd.c" file for that but there is a problem. There
is not any Chroma signal on DC5. (So the corresponding RGB (G4-G3-G2,
B7-B6-B5-B4-B3) signals are not active. ) Because of i couldn't get all
required  signals i see some colors which mainly hasn't any blue component.

Here is my "vpbe_dm355fb_480p_prgb_config" function. I have some
modification on it but I know i need more it how?.

While "boot process" i see montavista logo (on the upper-left corner) in
NORMAL COLORS for a very little time (a half second) then it appearing
in missing blue color again. Because the logo for a little time is
appearing in WHITE (this is it's original color) then the WHITE turns to
YELLOW (so i understand that chroma has gun.)

There is two probabilities;
1- My configuation is wrong and i missing something. If this is right, i
must do two opposite modification on registers of VPBE in the fbdriver
files but i 'm sure i didn't do that.
2- All the framebuffer configuration is correct but there is an external
code in a kernel driver or module which changing the direction or the
usage purpose of "Chroma Pins". And  of course it is registering itself
after framebuffer driver.

Please tell me about how to solve this problem?

I think about  trying to write a kernel module and load it after all
init process completed. In it i will do all PRGB default setup manually
so if my second scenario is true i will solve the problem. But the main
problem will stand forever without any solution.

What do you advice me to do?

Thank you so much for help and reaading.

Serkan Erdoğan

 
/***************************************************************************************************************************************************************************************************/
/***************************************************************************************************************************************************************************************************/
void vpbe_dm355fb_480p_prgb_config(void)
{

    unsigned int venc, lcdout;
    u32 TEMP_PINMUX1;
    venc = dispc_reg_in(VENC_VMOD) & VENC_VMOD_VENC;
    lcdout = dispc_reg_in(VENC_LCDOUT);
    vpbe_set_display_default();

    /* set VPSS clock */
    dispc_reg_out(VPSS_CLK_CTRL, 0x18);

    /* Enable the venc and dlcd clocks. */
    dispc_reg_out(VENC_CLKCTL, 0x11);

    /* Set the OSD Divisor to 1. */
    dispc_reg_out(VENC_OSDCLK0, 0);
    dispc_reg_out(VENC_OSDCLK1, 1);

    /* Clear composite mode register */
    dispc_reg_out(VENC_CVBS, 0);

    /* Set PINMUX1 to enable all outputs needed to support RGB666 */
    dispc_reg_out(PINMUX1, 0x00005555);
#ifndef my_edit1
#define my_edit1
    /* Set pinmux1 for digital display out */
    TEMP_PINMUX1 = dispc_reg_in(PINMUX1);
    dispc_reg_out(PINMUX1,(TEMP_PINMUX1 & (~(17<<1))));  
 //PINMUX1.[17] = 0;
#endif

    /* Set Base Pixel X and Base Pixel Y */
    dispc_reg_out(OSD_BASEPX, dm->videomode.basepx);
    dispc_reg_out(OSD_BASEPY, dm->videomode.basepy);

    /* Set VIDCTL to select VCLKE = 1,
    VCLKZ =0, SYDIR = 0 (set o/p), DOMD = 0 */

    dispc_reg_out(VENC_VIDCTL,0x2040);    

    dispc_reg_merge(VENC_DCLKCTL,1 <<
VENC_DCLKCTL_DCKEC_SHIFT,VENC_DCLKCTL_DCKEC);

    dispc_reg_out(VENC_DCLKPTN0, 0x1);

    vpbe_set_display_timing(&dm->videomode);
    dispc_reg_out(VENC_SYNCCTL,(VENC_SYNCCTL_SYEV |    VENC_SYNCCTL_SYEH
| VENC_SYNCCTL_HPL | VENC_SYNCCTL_VPL));

    /* Configure VMOD. No change in VENC bit */
    dispc_reg_out(VENC_VMOD, 0x2010 | venc);
    dispc_reg_out(VENC_LCDOUT, lcdout);

    /* Change window parameters for progressive display */
    change_win_param(FB_VMODE_NONINTERLACED);

}
 
/***************************************************************************************************************************************************************************************************/
/***************************************************************************************************************************************************************************************************/
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to