分类: LINUX
2011-12-22 14:30:38
设置LCD控制器
static struct fb_videomode at91_tft_vga_modes[]={
{
.name = “TX09D50VM1CCA @ 60”
.refresh = 60,
.xres = 640, .yres = 480,
.pixclock = KHZ2PICOS(25000),
.left_margin = 30, .right_margin = 16,
.upper_margin = 36, .lower_margin = 10,
.hsync_len = 96, .vsync_len = 2,
其它的不改
}
}
其中 .pixclock = KHZ2PICOS((640+30+16+96)*(480+36+10+2)*60/1000),