uboot 1280x1024 lvds logo

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

uboot 1280x1024 lvds logo

1,910 Views
jiejia
Contributor III

board: imx6q_sabresd;

version: u-boot-2009.08;

patch:0001-Enable-uboot-logo-for-HDMI-LCD-and-LVDS.patch

Dear Community,

     i want to show logo on my 1280x1024 lcd panel, it uses lvds split mode in kernel, my kernel  shows normal(LVDS_CLK:54M). Now, I need to show logo when system start up. But I found a strange problem when I patch the 0001-Enable-uboot-logo-for-HDMI-LCD-and-LVDS.patch to u-boot-2009.08.   The LVDS0_CLK and LVDS1_CLK is about 74M no matter what the DISPLAY_PIX_CLOCK is. 

#define DISPLAY_WIDTH1280
#define DISPLAY_HEIGHT1024
#define DISPLAY_BPP32
#define DISPLAY_IF_BPP24// RGB24 interface

#define DISPLAY_HSYNC_START248
#define DISPLAY_HSYNC_END48
#define DISPLAY_HSYNC_WIDTH112

#define DISPLAY_VSYNC_START38
#define DISPLAY_VSYNC_END1
#define DISPLAY_VSYNC_WIDTH3

#define DISPLAY_PIX_CLOCK107964480

#define LVDS_SPLIT_MODE

kernel, 1280*1024

{
"LDB-SXGA", 60, 1280, 1024, 9260,
248, 48,
38, 1,
112, 3,
0,
FB_VMODE_NONINTERLACED,
FB_MODE_IS_DETAILED,},
Labels (4)
0 Kudos
4 Replies

853 Views
igorpadykov
NXP Employee
NXP Employee

Hi jie

at that file one can find how it is produced:

ipu_setup()

...

+#ifdef IPU_OUTPUT_MODE_LVDS

+#ifdef LVDS_SPLIT_MODE

+    if (DI == 0)

+        clk_config(CONFIG_REF_CLK_FREQ, DISPLAY_PIX_CLOCK * 7 / 2, LVDS_DI0_CLK);

+    else if(DI == 1)

+        clk_config(CONFIG_REF_CLK_FREQ, DISPLAY_PIX_CLOCK * 7 / 2, LVDS_DI1_CLK);

clock produced by function config_lvds_clk() and also LVDS0,1_CLK are generated by dividing

by 3.5 if in split mode as described in attached document sect.20.6.1 Data serialization clocking

Best regards

igor

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

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

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

0 Kudos

853 Views
jiejia
Contributor III

Hi,igor

According to Figure 20-3 in iMX6_Firmware_Guide.pdf, I choose 540 PFD by setting CS2CDR: ldb_di0_clk_sel=3.  However, I can't find what the 540 PFD derive from. Would you give me some advise to find and set it?

0 Kudos

853 Views
jiejia
Contributor III

Hi,igorpadykov

  Thanks for reply. Here is the info printed by u-boot.

   config_ipu_lvds_clk: freq = 377875680.

   config_ipu_lvds_clk: set pll3_pfd1 clock to 378MHz, divider = 22.

As you said, the lvds clk is 378/3.5 = 108M. In spilt mode , the should be the 54M. But I find the lvds clk is 75M in oscillograph. Is there something wrong in my include/configs/mx6q_sabresd.h?

0 Kudos

853 Views
igorpadykov
NXP Employee
NXP Employee

one can also look at suggestions

https://community.freescale.com/thread/392013

~igor

0 Kudos