how to support WSVGA output in imx6sdq

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to support WSVGA output in imx6sdq

4,060 Views
raysonrayson
Contributor I

Hi all:

  How to support WSVGA in imx6 sdq , I know it may refer to two files  ldb.c(static struct fb_videomode ldb_modedb[])  and modedb.c(static const struct fb_videomode modedb[]),

and how to modidy ,please help me ,thanks a lot

Labels (2)
0 Kudos
8 Replies

1,894 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Rayson,

The answer from Saurabh is also useful.

Have a nice day

Best Regards

Dan

0 Kudos

1,895 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi Rayson,

You also have to modify the BSP after you have completed configuring the LCD Parameter refer to the LCD datasheet.

Here you can refer to this thread:

LCD not working on custom i.mx6q board

There are details in how to modify, you can have a refer to.

Besides, here I attach you two documents, they are useful for you.
Have a great day
Dan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,895 Views
raysonrayson
Contributor I

Hi Dan Wang:

   Thanks a lot , but I use the LVDS interface, and the display device is HanntStart HSD101PFW2, and how to set  these parameters as follows, I had search the  HSD101PFW2's datasheet ,but did not find these paramters , can you help me again , thanks very much。

struct fb_videomode {

const char *name; /* optional */

u32 refresh;  /* optional */

u32 xres;

u32 yres;

u32 pixclock;

u32 left_margin;

u32 right_margin;

u32 upper_margin;

u32 lower_margin;

u32 hsync_len;

u32 vsync_len;

u32 sync;

u32 vmode;

u32 flag;

};

0 Kudos

1,895 Views
saurabh206
Senior Contributor III

Hi Rayson

You need to contact local supplier for datasheet.

It you still can't find it than you should try standard WSVGA parameter. It should work.

Thanks

Saurabh

0 Kudos

1,895 Views
raysonrayson
Contributor I

Hi Saurabh:

  Thank you very much, where can I get the standard WSVGA paramters,can you help me, thank you again.

0 Kudos

1,895 Views
saurabh206
Senior Contributor III

Hi

Rayson

You can try this.

static struct fb_videomode video_modes[] = {

     ...

     {

         .name = "WSVGA",

         .refresh = 60,

         .xres = 1024,

         .yres = 600,

         .pixclock = 48000,

         .left_margin = 104,

         .right_margin = 43,

         .upper_margin = 24,

         .lower_margin = 20,

         .hsync_len = 5,

         .vsync_len = 5,

         .sync = 0,

         .vmode = FB_VMODE_NONINTERLACED,

         .flag = 0,

    },

0 Kudos

1,895 Views
raysonrayson
Contributor I

Hi Saurabh:

  I try it ,but it doesn't work。

0 Kudos

1,895 Views
saurabh206
Senior Contributor III

Hi Rayson

You can refer attached document.

Thanks

Saurabh