LCD configuration help

Bare metal LCD Configuration on
Hi every body...i have mini6410 with 4.3 inch LCD
I tried to initialize display controller in bare metal mode.
the problem is the LCD driver can't find true data on memory and the
display shows dummy image. I think the configuration is incorrect...
my LCD_initialize is:

#define WIND0_BUFFER  0x52000000
#define LCD_WIDTH    640
#define LCD_HEIGHT    480

#define VSPW      96
#define  VBPD      46
#define VFPD      20

#define HSPW      2
#define HBPD      11
#define HFPD      31

void LCD_Init(void)
{
  
        int i,j;
  
  Pnt=(short*)WIND0_BUFFER;
     
  GPECON = 1;
  GPEDAT = 1;
  
  GPICON = 0xAAAAAAAA;
  GPIPUD = 0x00000000;
  
  GPJCON = 0x00AAAAAA;
  GPJPUD = 0x00000000;
  
  SPCON = (SPCON & 0xFFFFFFFC)|0x1;
  MIFPCON = (MIFPCON & 0xFFFFFFF7);
  
  S3C6410_DISP_CONT->VIDCON0  = (0<<29)|(0<<27)|(0<<26)|(0<<18)|        
(0<<17)|(0<<16)|(9<<6)|(0<<5)|(1<<4)|(0<<3)|(0<<2)|(0<<0);
  S3C6410_DISP_CONT->VIDCON1  = (0<<7);
  
  S3C6410_DISP_CONT->VIDTCON0 = (VBPD<<16)|(VFPD<<8)|(VSPW);
  S3C6410_DISP_CONT->VIDTCON1 = (HBPD<<16)|(HFPD<<8)|(HSPW);
  
  S3C6410_DISP_CONT->VIDTCON2 = ((LCD_HEIGHT-1) << 11) | (LCD_WIDTH-1);
  
  S3C6410_DISP_CONT->WINCON1  = (5<<2);
  
  S3C6410_DISP_CONT->VIDOSD1A = 0x00000000;
  S3C6410_DISP_CONT->VIDOSD1B = (LCD_WIDTH << 11) | (LCD_HEIGHT);
  S3C6410_DISP_CONT->VIDOSD1C = (LCD_WIDTH*LCD_HEIGHT);
   
  S3C6410_DISP_CONT->VIDW01ADD0B0 = WIND0_BUFFER;
  S3C6410_DISP_CONT->VIDW01ADD1B0 = WIND0_BUFFER + ( LCD_HEIGHT*LCD_WIDTH
);
  
  S3C6410_DISP_CONT->VIDW01ADD2 = ((LCD_WIDTH*2) << 0);
  
  S3C6410_DISP_CONT->VIDCON0 = (S3C6410_DISP_CONT->VIDCON0 & 0xFFFFFFFF) |
(3<<0);
  S3C6410_DISP_CONT->WINCON1 = (S3C6410_DISP_CONT->WINCON0 & 0xFFFFFFFF) |
(1<<0) | (1<<18);

  for(j=0;j<(LCD_HEIGHT*LCD_WIDTH);j++)
        {
       *Pnt++=0x00;
        }
    
}

} 

In addition my compiler is code warrior v1.4

Thank you...it's urgent for me to get respond.

clarkli
What do you mean by dummy image?
You code fills the whole LCD with black.

Try filling the LCD with a RGB pattern. Therefore you can find out whether
the windows base addr is wrong or the pixel format is wrong.

Bare metal LCD Configuration on
thanks for reply but I did this before and it was't change...I loaded a RGB
pattern on DRAM...but half of screen is black with many  parallel and
colorful lines. even I have changed my defines but the LCD wasn't in my
control...