解决嵌入式LCD屏整体偏移的问题(Solve the embedded LCD screen overall offset problem).doc
文本预览下载声明
解决嵌入式LCD屏整体偏移的问题(Solve the embedded LCD screen overall offset problem)
Has been bothering me, using their own compiled 2.6.12 kernel burned to the development board, the overall offset screen touched the problem is finally solved
Its really a LCD driver problem
I doubt that the manufacturers that sell my development board have not compiled their own kernel at all
Board support is strongly recommended or spend a lot of money at the beginning of Maiyang or long good will not cut corners
Shit, my board says, support VGA, call me, but tell me you dont support me.! No. @ @ $@ No.
The difference is seen in this small aspect
Who knows what he is mad at me,
The lesson is, I paid enough for Yangs board, cry
Resolvent
1. find the driver in the source package
For example, mine is in /drivers/video/s3c2410fb.c
It is also possible to delete a possible LCD driver with the exclusion method in the driver\lcd or driver\display directory to see if the kernel can be compiled
2. find a shape, such as the following structure
Struct, pxafb_mach_info, S3C2410_320X240_info = {
.pixclock = 270000,
.xres = 320,
.yres = 240,
.bpp = 16,
.hsync_len = 18,
.left_margin = 4,
.right_margin = 13,
.vsync_len = 4,
.upper_margin = 4,
.lower_margin = 4,
.sync = FB_SYNC_HOR_HIGH_ACT FB_SYNC_VERT_HIGH_ACT |,
.cmap_greyscale = 0,
.cmap_inverse = 0,
.cmap_static = 0,
.reg = {
.lcdcon1 = (78) | (07) | (35) | (121),
.lcdcon2 = (1424) | (24014) | (46) | (4),
.lcdcon3 = (4519) | (3808) | (4),
.lcdcon4 = (138) | (18),
.lcdcon5 = (111) | (110) | (19) | (18) | (07) | (06) | (13) | (01) | (1),
}
};
There are many such structures in my driver, corresponding to a variety of LCD
One of these sections is the choice of which structure to use
Static int yl2410_fb_setup (char *options)
{
# ifdef CONFIG_FB_PXA_PARAMETERS
Strlcpy (g_options, options, sizeof (g_options));
# endif
If (strncmp (vga800, options, 6)
Fs2410_info = S3C2410_800X600_info;
Else if (strncmp (vga640, options, 6)
Fs2410_info = S3C2410_640X480_info_vga;
显示全部