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.
阅读(762) | 评论(0) | 转发(0) |