LCD驱动---LVDS详解(一)

来源:互联网 发布:淘宝店卖家版官方下载 编辑:程序博客网 时间:2024/05/24 07:19

fb_videomode每个参数的意思:

 1struct fb_videomode {

 2    const char *name;    //name

 3    u32 refresh;        //Frequency

 4    u32 xres;      

 5    u32 yres;      

 6    u32 pixclock;    //时钟频率

 7    u32 left_margin;  //HBPD( Horizontal sync Back porch (pixels))

 8    u32 right_margin;  //HFPD(Horizontal sync Front porch (pixels))

 9    u32 upper_margin;   //VBPD(Vertical sync Back porch (pixels))

10    u32 lower_margin;  //VFPD( vertical sync Front porch (pixels))

11    u32 hsync_len;    //HSPW(Horizontal sync pulse width (pixels))

12    u32 vsync_len;    //VSPW(Vertical Sync pulse width (pixels))

13    u32 sync;

14    u32 vmode;

15    u32 flag;

16 }; 

   这个参数在屏幕的规格书里都有或者可以参考下面的设置:

---------------------------------------------------

720x480p:

Generic timing details for 720x480:

HFP=76 HSW=40 HBP=100 HF=34KHz VFP=29 VSW=1VBP=53 VF=60Hz

----------------------------------------------------

Widescreen 16:9

848x480p

 

Generic timing details for 848x480:

HFP=88 HSW=48 HBP=120 HF=34KHz VFP=28 VSW=1VBP=54 VF=60Hz

----------------------------------------------------

Widescreen 16:9

856x480p

 

Generic timing details for 856x480:

HFP=87 HSW=48 HBP=121 HF=34KHz VFP=28 VSW=1VBP=54 VF=60Hz

----------------------------------------------------

Screen 4:3

1080x480p

 

Generic timing details for 1080x480:

HFP=108 HSW=48 HBP=164 HF=34KHz VFP=29VSW=1 VBP=53 VF=60Hz

----------------------------------------------------

Screen 4:3

1440x480p

 

Generic timing details for 1440x480:

HFP=144 HSW=80 HBP=208 HF=34KHz VFP=29VSW=1 VBP=53 VF=60Hz

-----------------------------------------------------

Screen 4:3

1800x480p

 

Generic timing details for 1800x480:

HFP=154 HSW=96 HBP=246 HF=34KHz VFP=32VSW=1 VBP=50 VF=60Hz

-----------------------------------------------------

Screen 4:3

1800x540p

 

Generic timing details for 1800x540:

HFP=148 HSW=96 HBP=244 HF=34KHz VFP=7 VSW=1VBP=15 VF=60Hz

-----------------------------------------------------

Screen 4:3

1920x540p

 

Generic timing details for 1920x540:

HFP=161 HSW=104 HBP=255 HF=34KHz VFP=7VSW=1 VBP=15 VF=60Hz

-----------------------------------------------------

Screen 4:3

960x540p

 

Generic timing details for 960x540:

HFP=98 HSW=48 HBP=142 HF=34KHz VFP=7 VSW=1VBP=15 VF=60Hz

--------------------------------------------------------------------------------------

Powerstrip dongle 540P/1080i customtimings:

------------------------------------------------------------------------

Screen 4:3

640x480p HDTV

 

Generic timing details for 640x480:

HFP=143 HSW=48 HBP=169 HF=34KHz VFP=28VSW=1 VBP=54 VF=60Hz

-------------------------------------------------------------------

Screen 4:3

720x480p HDTV

 

Generic timing details for 720x480:

HFP=72 HSW=48 HBP=88 HF=34KHz VFP=29 VSW=1VBP=53 VF=60Hz

-------------------------------------------------------------------

Screen 4:3

856x480p HDTV

 

Generic timing details for 856x480:

HFP=88 HSW=48 HBP=120 HF=34KHz VFP=28 VSW=1VBP=54 VF=60Hz

--------------------------------------------------------------------

Screen 4:3

1776x1000i HDTV

 

Generic timing details for 1776x1000:

HFP=136 HSW=48 HBP=240 kHz=34 VFP=42 VSW=5VBP=78 Hz=30

interlace

--------------------------------------------------------------------

Screen 16:9

1920x1080i HDTV

 

Generic timing details for 1920x1080:

HFP=169 HSW=64 HBP=295 HF=34KHz VFP=20VSW=5 VBP=20 VF=30Hz

interlace

------------------------------------------------------------------------------------

Screen 4:3

800x600i

 

Generic timing details for 800x600:

HFP=279 HSW=56 HBP=329 HF=34KHz VFP=250VSW=1 VBP=274 VF =30Hz

interlace

-------------------------------------------------------

Screen 4:3

1024x768i

 

Generic timing details for 1024x768:

HFP=164 HSW=56 HBP=220 HF=34KHz VFP=160VSW=1 VBP=196 VF=30Hz

interlace

--------------------------------------------------------

Screen 4:3

1152x864i

 

Generic timing details for 1152x864:

HFP=190 HSW=112 HBP=218 HF=34KHz VFP=112VSW=1 VBP=148 VF=30Hz

interlace

-----------------------------------------------------------

Screen 4:3

1280x720i

 

Generic timing details for 1280x720:

HFP=125 HSW=120 HBP=139 HF=34KHz VFP=180VSW=1 VBP=224 VF=30Hz

interlace

-----------------------------------------------------------

Screen 4:3

1280x768i

 

Generic timing details for 1280x768:

HFP=138 HSW=96 HBP=166 HF=34KHz VFP=156VSW=1 VBP=200 VF=30Hz

interlace

--------------------------------------------------------------

Screen 4:3

1280x960i

 

Generic timing details for 1280x960:

HFP=128 HSW=96 HBP=160 HF=34KHz VFP=44VSW=1 VBP=120 VF=30Hz

interlace

----------------------------------------------------------------

Screen 4:3

1280x1024i

 

Generic timing details for 1280x1024:

HFP=127 HSW=96 HBP=161 HF=34KHz VFP=43VSW=3 VBP=55 VF=30Hz

interlace

----------------------------------------------------------------

Screen 4:3

1440x960i

 

Generic timing details for 1440x960:

HFP=140 HSW=104 HBP=180 HF=34KHz VFP=60VSW=1 VBP=104 VF=30Hz

interlace

------------------------------------------------------------------

Screen 4:3

1600x900i

 

Generic timing details for 1600x900:

HFP=159 HSW=80 HBP=249 HF=34KHz VFP=89VSW=3 VBP=133 VF=30Hz

interlace

-----------------------------------------------------------------

Screen 4:3

1776x1000i

 

Generic timing details for 1776x1000:

HFP=166 HSW=88 HBP=274 HF=34KHz VFP=44VSW=5 VBP=76 VF=30Hz

interlace

------------------------------------------------------------------

Screen 4:3

1920x1080i

 

Generic timing details for 1920x1080:

HFP=180 HSW=144 HBP=244 HF=34KHz VFP=24VSW=2 VBP=20 VF=30Hz

interlace

***************************************

480p timings

***************************************

Screen 4:3

640x480p

 

Generic timing details for 640x480:

HFP=55 HSW=96 HBP=57 HF=32KHz VFP=11 VSW=5VBP=29 VF=60Hz

-------------------------------------------------------

Screen 4:3

720x480p

 

Generic timing details for 720x480:

HFP=67 HSW=96 HBP=85 HF=32KHz VFP=21 VSW=5VBP=19 VF=60Hz

--------------------------------------------------------

Screen 4:3

1440x480p

 

Generic timing details for 1440x480:

HFP=118 HSW=144 HBP=218 HF=32KHz VFP=13VSW=5 VBP=27 VF=60Hz

--------------------------------------------------------

 

重新编译内核烧入板子中,就可以正常显示;

原创粉丝点击