Chinaunix首页 | 论坛 | 博客
  • 博客访问: 796545
  • 博文数量: 172
  • 博客积分: 3836
  • 博客等级: 中校
  • 技术积分: 1988
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-10 14:59
文章分类

全部博文(172)

文章存档

2014年(2)

2013年(1)

2012年(28)

2011年(141)

分类: LINUX

2011-02-21 17:30:02

     Today I seriously study the LCD parameter setting. Here are 5 important parameters. They are clock, HBP, Hpixel, VBP, Vpixel. The clock is the DCLK frequency. It aften is 40MHz in LCD device. Maybe It has another value. HBP means Horizontal Blanking Pulse. Hpixel means the horizontal pixels. HBP + Hpixcel = Hsync. Also, That's same for the vertical direction.
     Color field maybe includes 16 bits or 24 bits. Each color includes the offset. Here offset means that this color start from the offset. Here is the color field structure.
 
struct fb_bitfield {
 __u32 offset;   /* beginning of bitfield */
 __u32 length;   /* length of bitfield  */
 __u32 msb_right;  /* != 0 : Most significant bit is */
     /* right */
};
 
 .red            = {11, 5, 0},
 .green          = {5, 6, 0},
 .blue           = {0, 5, 0},
 .transp         = {0, 0, 0},
 
     bit0-----5-----11------bit15
          blue green    red
     If you wanta porting the LCD driver, These parameters are paid more attentions. That's it.
 
阅读(720) | 评论(0) | 转发(0) |
0

上一篇:Think twice, pop up

下一篇:The life's belief

给主人留下些什么吧!~~