Hi Rayson,
The answer from Saurabh is also useful.
Have a nice day
Best Regards
Dan
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!
-----------------------------------------------------------------------------------------------------------------------
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;
};
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
Hi Saurabh:
Thank you very much, where can I get the standard WSVGA paramters,can you help me, thank you again.
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,
},
Hi Saurabh:
I try it ,but it doesn't work。