linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: ux500: Initialize DSI clocks before registering
@ 2019-12-22 20:29 Linus Walleij
  2019-12-22 21:46 ` Linus Walleij
  0 siblings, 1 reply; 6+ messages in thread
From: Linus Walleij @ 2019-12-22 20:29 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-clk, Linus Walleij, Ulf Hansson, Stephan Gerhold

The DSI clocks need to be initialized properly and cannot
rely on boot defaults, this is especially important for the
U8420 SYSCLK variant of the PRCMU firmware which requires
that you poke these registers right before trying to use
the HS DSI clock. Some vital setup such as the PRCM_TVCLK_MGT
register will not happen unless we call this making some
displays fail to work on the U8420.

Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/clk/ux500/u8500_of_clk.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/clk/ux500/u8500_of_clk.c b/drivers/clk/ux500/u8500_of_clk.c
index 0aedd42fad52..c1043a6b383f 100644
--- a/drivers/clk/ux500/u8500_of_clk.c
+++ b/drivers/clk/ux500/u8500_of_clk.c
@@ -65,6 +65,9 @@ static void u8500_clk_init(struct device_node *np)
 	u32 bases[CLKRST_MAX];
 	int i;
 
+	/* Initialize display clocks */
+	prcmu_set_display_clocks();
+
 	for (i = 0; i < ARRAY_SIZE(bases); i++) {
 		struct resource r;
 
-- 
2.21.0


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

end of thread, other threads:[~2019-12-23 16:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-22 20:29 [PATCH] clk: ux500: Initialize DSI clocks before registering Linus Walleij
2019-12-22 21:46 ` Linus Walleij
2019-12-23  9:16   ` Ulf Hansson
2019-12-23  9:28     ` Viresh Kumar
2019-12-23  9:33       ` Ulf Hansson
2019-12-23 16:25     ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).