嵌入式Linux2.6.32系统移植 – LCD
主机:RHEL6.0(2.6.32-220.2.1.el6.i686)
开发板:FL2440
编译器:arm-unknown-linux-gnueabi-gcc-4.4.6
LCD型号:东华WXCAT35-TG3#001
@@arch/arm/mach-s3c2440/mach-smdk2440.c
##实现1:
修改smdk2440_lcd_cfg
__initdata内容如下1(有闪烁,大小正常):
##参考http://soboer.iteye.com/blog/1286494
- static struct s3c2410fb_display smdk2440_lcd_cfg __initdata = {
- .lcdcon5 = S3C2410_LCDCON5_FRM565 |
- S3C2410_LCDCON5_INVVCLK |
- S3C2410_LCDCON5_INVVLINE |
- S3C2410_LCDCON5_INVVFRAME |
- S3C2410_LCDCON5_PWREN |
- S3C2410_LCDCON5_HWSWP,
- .type = S3C2410_LCDCON1_TFT,
- .width = 320,
- .height = 240,
- .pixclock = 270000, /* HCLK 100 MHz, divisor 10 */
- .xres = 320,
- .yres = 240,
- .bpp = 16,
- .left_margin = 8,
- .right_margin = 5,
- .hsync_len = 63,
- .upper_margin = 15,
- .lower_margin = 13,
- .vsync_len = 5,
- }
##实现2:
修改smdk2440_lcd_cfg
__initdata内容如下2(闪烁不明显,大小正常):
##参考:
- static struct s3c2410fb_display smdk2440_lcd_cfg __initdata = {
- .lcdcon5 = S3C2410_LCDCON5_FRM565 |
- S3C2410_LCDCON5_INVVCLK |
- S3C2410_LCDCON5_INVVLINE |
- S3C2410_LCDCON5_INVVFRAME |
- S3C2410_LCDCON5_PWREN |
- S3C2410_LCDCON5_HWSWP,
- .type = S3C2410_LCDCON1_TFT,
- .width = 320,
- .height = 240,
- .pixclock = 156000,
- .xres = 320,
- .yres = 240,
- .bpp = 16,
- .left_margin = 20,
- .right_margin = 38,
- .hsync_len = 30,
- .upper_margin = 12,
- .lower_margin = 15,
- .vsync_len = 3,
- };
修改smdk2440_fb_info
__initdata,将.lpcsel
= ((0xCE6) & ~7) | 1<<4,
改为 .lpcsel
= 0x00,
至此,LCD移植成功.
##参考资料:
http://soboer.iteye.com/blog/1286494
阅读(523) | 评论(0) | 转发(0) |