Hello all:

        I want to show a raw RGB(5:6:5 format) picture in the u-boot, 
which is loaded at BMPADRR . But I see nothing on the screen when set "#if 
1". A red background is shown when set "#if 0". The follow is a part of my 
code. Is there any incorrect configuration? How to show the raw RGB 
picture? Please help me. Thanks very much!

 
#define BMPADRR 0x80700000
#define BMPWITH 0x000002d0
#define BMPHIGH 0x00000120

#define BMPSIZE (BMPWITH * BMPHIGH * 16)
 
void davincifb_init( void )
{

#define PLLDIV1 0x01C40918
#define PLLDIV3         0x01C40920


        dispc_reg_out(PLLDIV1,0x00008000);
        dispc_reg_out(PLLDIV3,0x00008002);
 
        /* Initialize the VPSS Clock Control register */
        dispc_reg_out(VPSS_CLKCTL, 0x18);

        /* Set Base Pixel X and Base Pixel Y */
        dispc_reg_out(OSD_BASEPX, BASEX);
        dispc_reg_out(OSD_BASEPY, BASEY);

        /* Reset OSD registers to default. */
        dispc_reg_out(OSD_MODE, 0);
        dispc_reg_out(OSD_OSDWIN0MD, 0);

        /* Set red background color */
        set_bg_color(0, 62);

#if 1
        dprintf("Register OSD0 
framebuffer========================================\n");

        dispc_reg_out(OSD_OSDWIN0ADR,BMPADRR);

        dispc_reg_out(OSD_OSDWIN0OFST,0x0000002d);
 
        dispc_reg_out(OSD_OSDWIN0MD,0x00000002);
        dispc_reg_out(OSD_OSDWIN0XP,0x00000000);
        dispc_reg_out(OSD_OSDWIN0YP,0x00000000);

        dispc_reg_out(OSD_OSDWIN0XL,BMPWITH); 
        dispc_reg_out(OSD_OSDWIN0YL,BMPHIGH);

 
        dispc_reg_out(OSD_OSDWIN0MD,0x00002002);
 
        dispc_reg_out(OSD_OSDWIN0MD,0x00002003);
#endif

        /* Turn ON the output device */
         davincifb_pal_composite_config(TRUE);
}




-----------------------------------------------------------
KONKA GROUP CO.,LTD.
E-mail:[EMAIL PROTECTED]
MSN:[EMAIL PROTECTED]
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to