How does the LCD keep the uboot logo displayed to the kernel?

cancel
Showing results for 
Search instead for 
Did you mean: 

How does the LCD keep the uboot logo displayed to the kernel?

Jump to solution
1,299 Views
longh
Contributor III

Hi all:

    The chip I used is imx6sx, and the BSP version is 4.14.98,and the LCD drive mode is rgb565.Now I can display the logo in Uboot and kernel respectively, but during kernel startup, there will be a black screen around 3S, displaying the Linux logo.

    I have referred to this issue:

Patch to support uboot logo keep from uboot to kernel for NXP Linux and Android BSP (HDMI, LCD and L... Qiang Li - Mpu Se

    but the attachment cannot be downloaded, which indicates the error in the following figure:

pastedImage_2.png

Labels (4)
0 Kudos
1 Solution
696 Views
b45499
NXP TechSupport
NXP TechSupport

Hi,

I have confirmed with our expert team, they said the patches above are based on IPU configuration you can not refer to. The i.mx6sx is based on LCDIF not IPU. So, when the kernel boot up you need to keep the LCDFI clock and the LCDIF configurations no changes. And when the Display diver register, keeping the LCDIF setting with no changes. Hope this can do help for you.(6SX是基于LCDIF的,不是IPU的,在kernel启动的过程中,要保持LCDIFclock还有LCDIF的设置不能改变。

Display driver注册的时候,不进行LCDIF的重设。)

Have a nice day

Rita

View solution in original post

0 Kudos
8 Replies
696 Views
b45499
NXP TechSupport
NXP TechSupport

We have same issue, I will do confirm it for you. And then give you update.

0 Kudos
696 Views
longh
Contributor III

Thank you very much. I am waiting for your reply

0 Kudos
697 Views
b45499
NXP TechSupport
NXP TechSupport

Hi,

I have confirmed with our expert team, they said the patches above are based on IPU configuration you can not refer to. The i.mx6sx is based on LCDIF not IPU. So, when the kernel boot up you need to keep the LCDFI clock and the LCDIF configurations no changes. And when the Display diver register, keeping the LCDIF setting with no changes. Hope this can do help for you.(6SX是基于LCDIF的,不是IPU的,在kernel启动的过程中,要保持LCDIFclock还有LCDIF的设置不能改变。

Display driver注册的时候,不进行LCDIF的重设。)

Have a nice day

Rita

View solution in original post

0 Kudos
696 Views
longh
Contributor III

    Thanks for your reply, I have completed the implementation of this function.The following is the general implementation process.It may be helpful to some people.

    In u-boot 2018.03, you need to properly configure the parameters of the LCD and then mask lcdif_power_down() called in cpu.c.

    In the 4.14.98 kernel, mxsfb.c needs to be modified by calling pm_runtime_get_sync(&host->pdev->dev) in the probe function.Make sure the following clock is on and block all register initializations, then map the fb address to uboot.

imx_clk_prepare_enable (CLKS [IMX6SX_CLK_LCDIF1_PIX]);

imx_clk_prepare_enable  (CLKS [IMX6SX_CLK_LCDIF_APB]);

imx_clk_prepare_enable (CLKS [IMX6SX_CLK_AXI]);

imx_clk_prepare_enable (CLKS [IMX6SX_CLK_DISPLAY_AXI]);

696 Views
b45499
NXP TechSupport
NXP TechSupport

Good, thanks a lot for your sharing~~

0 Kudos
696 Views
zhenhua_lin
Contributor I

Does any update for imx6ull of this feature ?

0 Kudos
696 Views
longh
Contributor III

If you want to keep the screen from flickering, you also need to configure PWM in uboot and modify the PWM -backlight.c in the kernel to avoid reinitializing the registers

696 Views
zhenhua_lin
Contributor I

Could you please share your patch?

0 Kudos