2008-12-08 22:24:29     TFT_LCD drive problem

Document created by Aaronwu Employee on Aug 9, 2013
Version 1Show Document
  • View in full screen mode

2008-12-08 22:24:29     TFT_LCD drive problem

hui li (CHINA)

Message: 66531   

 

我将内核提供的linux-2.6.x\drivers\video\bfin-t350mcqb-fb.c

 

我写了一个TFT的驱动,运行测试程序的时候,色彩不对,并且图像靠左边偏,右边有一条黑屏。

 

请问可能是什么原因,如何修改?希望做过Lcd驱动的朋友能给点意见,谢谢。

 

我的驱动是在linux-2.6.x\drivers\video\bfin-t350mcqb-fb.c修改得到的。效果图片见附件(一个是我改的驱动效果图,另一个是不带系统驱动效果图)

 

I writed a tft drive ,when use the test program to test it , the colour is not right ,and the position of the image is not in the right place,it moves to the left side and left a blackbar on the right side .

 

I have attached the picture in the appendix.(the picture of 'drive_with_uclinux.JPG 'is test by  my drive ,the picture of 'drive_without_system.JPG' test by the drive without system which is a right drive )

 

Why it like this , and how to fix it ?

QuoteReplyEditDelete

 

 

2008-12-08 22:31:31     Re: TFT_LCD drive problem

Mike Frysinger (UNITED STATES)

Message: 66534   

 

are you sure your color settings (and bit mode) actually match the hardware ?

QuoteReplyEditDelete

 

 

2008-12-09 03:33:21     Re: TFT_LCD drive problem

hui li (CHINA)

Message: 66543   

 

Do you mean this?

 

fbinfo->var.red.offset = 0;

    fbinfo->var.green.offset = 8;

    fbinfo->var.blue.offset = 16;

    fbinfo->var.transp.offset = 0;

    fbinfo->var.red.length = 8;

    fbinfo->var.green.length = 8;

    fbinfo->var.blue.length = 8;

    fbinfo->var.transp.length = 0;

 

I am sure it is right .

 

my boar is bf533-ezkit + DIMA ssk exten board .the TFT is TS35ND1501.

 

Would check my program ,please?

 

I have deal with this problem for a long time ,and I can't fix it .

 

 

 

my_lcd_test.c

bfin-ts35nd-fb1035.c

QuoteReplyEditDelete

 

 

2008-12-09 07:47:34     Re: TFT_LCD drive problem

Robin Getz (UNITED STATES)

Message: 66559   

 

Hui:

 

Dima supports their own boards, and does not share anything (hardware or drivers with us) - did you ask them first? They are really the only people who can help (since we don't have access to schematics either).

 

-Robin

Attachments

    Outcomes