Chinaunix首页 | 论坛 | 博客
  • 博客访问: 93886
  • 博文数量: 21
  • 博客积分: 548
  • 博客等级: 中士
  • 技术积分: 290
  • 用 户 组: 普通用户
  • 注册时间: 2011-05-01 12:11
文章分类

全部博文(21)

文章存档

2012年(12)

2011年(9)

我的朋友

分类: 嵌入式

2012-04-24 17:05:10

嵌入式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

点击(此处)折叠或打开

  1. static struct s3c2410fb_display smdk2440_lcd_cfg __initdata = {
  2.         .lcdcon5 = S3C2410_LCDCON5_FRM565 |
  3.                 S3C2410_LCDCON5_INVVCLK |
  4.                           S3C2410_LCDCON5_INVVLINE |
  5.                           S3C2410_LCDCON5_INVVFRAME |
  6.                           S3C2410_LCDCON5_PWREN |
  7.                           S3C2410_LCDCON5_HWSWP,
  8.         .type = S3C2410_LCDCON1_TFT,
  9.           .width = 320,
  10.         .height = 240,
  11.         .pixclock = 270000, /* HCLK 100 MHz, divisor 10 */
  12.         .xres = 320,
  13.         .yres = 240,
  14.         .bpp = 16,
  15.         .left_margin = 8,
  16.         .right_margin = 5,
  17.         .hsync_len = 63,
  18.         .upper_margin = 15,
  19.         .lower_margin = 13,
  20.         .vsync_len = 5,
  21. }

##实现2

修改smdk2440_lcd_cfg __initdata内容如下2(闪烁不明显,大小正常)

##参考:

 点击(此处)折叠或打开

  1. static struct s3c2410fb_display smdk2440_lcd_cfg __initdata = {
  2.         .lcdcon5 = S3C2410_LCDCON5_FRM565 |
  3.                           S3C2410_LCDCON5_INVVCLK |
  4.                           S3C2410_LCDCON5_INVVLINE |
  5.                           S3C2410_LCDCON5_INVVFRAME |
  6.                           S3C2410_LCDCON5_PWREN |
  7.                           S3C2410_LCDCON5_HWSWP,
  8.         .type = S3C2410_LCDCON1_TFT,
  9.         .width = 320,
  10.         .height = 240,
  11.         .pixclock = 156000,
  12.         .xres = 320,
  13.         .yres = 240,
  14.         .bpp = 16,
  15.         .left_margin = 20,
  16.         .right_margin = 38,
  17.         .hsync_len = 30,
  18.         .upper_margin = 12,
  19.         .lower_margin = 15,
  20.         .vsync_len = 3,
  21. };

修改smdk2440_fb_info __initdata,.lpcsel = ((0xCE6) & ~7) | 1<<4,

改为 .lpcsel = 0x00,


至此,LCD移植成功.


##参考资料:

http://soboer.iteye.com/blog/1286494

阅读(528) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~