All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Revert "video: mxsfb: Configure the clock after eLCDIF reset"
@ 2019-11-24 20:37 Fabio Estevam
  2019-11-24 21:07 ` Anatolij Gustschin
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2019-11-24 20:37 UTC (permalink / raw)
  To: u-boot

Commit ec3dcea74470 ("video: mxsfb: Configure the clock after eLCDIF reset")
causes boot regression on  imx7d-pico/imx7d-sdb boards, so revert it
until a better solution is prepared.

This reverts commit ec3dcea7447031463643c33143b3a5f027f0b54d.

Reported-by: Joris Offouga <offougajoris@gmail.com>
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 drivers/video/mxsfb.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c
index d73a8bac99..c52981053e 100644
--- a/drivers/video/mxsfb.c
+++ b/drivers/video/mxsfb.c
@@ -57,6 +57,9 @@ static void mxs_lcd_init(u32 fb_addr, struct ctfb_res_modes *mode, int bpp)
 	uint32_t word_len = 0, bus_width = 0;
 	uint8_t valid_data = 0;
 
+	/* Kick in the LCDIF clock */
+	mxs_set_lcdclk(MXS_LCDIF_BASE, PS2KHZ(mode->pixclock));
+
 	/* Restart the LCDIF block */
 	mxs_reset_block(&regs->hw_lcdif_ctrl_reg);
 
@@ -127,9 +130,6 @@ static void mxs_lcd_init(u32 fb_addr, struct ctfb_res_modes *mode, int bpp)
 	/* FIFO cleared */
 	writel(LCDIF_CTRL1_FIFO_CLEAR, &regs->hw_lcdif_ctrl1_clr);
 
-	/* Kick in the LCDIF clock */
-	mxs_set_lcdclk(MXS_LCDIF_BASE, PS2KHZ(mode->pixclock));
-
 	/* RUN! */
 	writel(LCDIF_CTRL_RUN, &regs->hw_lcdif_ctrl_set);
 }
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] Revert "video: mxsfb: Configure the clock after eLCDIF reset"
  2019-11-24 20:37 [U-Boot] [PATCH] Revert "video: mxsfb: Configure the clock after eLCDIF reset" Fabio Estevam
@ 2019-11-24 21:07 ` Anatolij Gustschin
  0 siblings, 0 replies; 2+ messages in thread
From: Anatolij Gustschin @ 2019-11-24 21:07 UTC (permalink / raw)
  To: u-boot

Hi Fabio,

On Sun, 24 Nov 2019 17:37:52 -0300
Fabio Estevam festevam at gmail.com wrote:

> Commit ec3dcea74470 ("video: mxsfb: Configure the clock after eLCDIF reset")
> causes boot regression on  imx7d-pico/imx7d-sdb boards, so revert it
> until a better solution is prepared.
> 
> This reverts commit ec3dcea7447031463643c33143b3a5f027f0b54d.
> 
> Reported-by: Joris Offouga <offougajoris@gmail.com>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> ---
>  drivers/video/mxsfb.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Applied to u-boot-video/master, thanks!

--
Anatolij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-24 21:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-24 20:37 [U-Boot] [PATCH] Revert "video: mxsfb: Configure the clock after eLCDIF reset" Fabio Estevam
2019-11-24 21:07 ` Anatolij Gustschin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.