/*
* turn all windows off
*/
writel(S5PV210_WINCON0, (readl(S5PV210_WINCON0) & ~0x1));
……
/*
* turn all windows color map off
*/
writel(S5PV210_WIN0MAP, (readl(S5PV210_WIN0MAP) & ~(1<<24)));
……
/*
* turn all windows color key off
*/
writel(S5PV210_W1KEYCON0, (readl(S5PV210_W1KEYCON0) & ~(3<<25)));
……
/*
* initial lcd controller
*/
s5pv210fb_set_output(lcd);
s5pv210fb_set_display_mode(lcd);
s5pv210fb_display_off(lcd);
s5pv210fb_set_polarity(lcd);
s5pv210fb_set_timing(lcd);
s5pv210fb_set_lcd_size(lcd);
s5pv210fb_set_clock(lcd);
/*
* set lcd video buffer
*/
s5pv210fb_set_buffer_address(lcd, 2);
s5pv210fb_set_buffer_size(lcd, 2);
s5pv210fb_set_window_position(lcd, 2);
s5pv210fb_set_window_size(lcd, 2);
/*
* enable window 2 for main display area
*/
s5pv210fb_window2_enable(lcd);
/*
* display on
*/
s5pv210fb_display_on(lcd);
/*
* wait a moment
*/
mdelay(100);
}
六、其他函数
struct surface_t * s5pv210_screen_surface(void)
{
return &s5pv210_fb.surface;//获取surface指针
}