原文:http://www.tuicool.com/articles/NzQVR3


xres         <===========> TEP

yres         <===========> Tvd

left_margin  <===========> Thf

right_margin <===========> Thb

hsync_len    <===========> THS

upper_margin <===========> Tvf

lower_margin <===========> Tvb

vsync_len    <===========> Tvs

Pixelclock: 

   xfree: in MHz 

   fb: in picoseconds (ps) 

   pixclock = 1000000 / DCF

上面示例LCD对应的fb参数如下:

    .pixclock = 1000000/64=15625,
    .xres = 768,
    .yres = 1024,
    .left_margin =0,
    .right_margin = 180,
    .hsync_len =THS= TH-THD-THB=948-768-180=0 ,
    .upper_margin = 0,
    .lower_margin = TVB=116,
    .vsync_len = TVS=TV-TVD-TVB=1140-1024-116=0,
Logo

更多推荐