public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: versatile/impd1: switch order of CLCD clocks
@ 2015-07-29 12:23 Linus Walleij
  2015-07-31  6:50 ` Stephen Boyd
  0 siblings, 1 reply; 5+ messages in thread
From: Linus Walleij @ 2015-07-29 12:23 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-clk, Linus Walleij

The CLCD clocks are registered in the wrong order: first the
APB clock, then the pixelclock. This should be the other way
around so the driver gets the pixelclock, not the APB clock,
when it asks for the first clock for the block.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/clk/versatile/clk-impd1.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/versatile/clk-impd1.c b/drivers/clk/versatile/clk-impd1.c
index 1cc1330dc570..5e81408e91d6 100644
--- a/drivers/clk/versatile/clk-impd1.c
+++ b/drivers/clk/versatile/clk-impd1.c
@@ -107,8 +107,9 @@ void integrator_impd1_clk_init(void __iomem *base, unsigned int id)
 	clk = icst_clk_register(NULL, &impd1_icst1_desc, imc->vco1name, NULL,
 				base);
 	imc->vco1clk = clk;
-	imc->clks[0] = clkdev_alloc(pclk, "apb_pclk", "lm%x:01000", id);
-	imc->clks[1] = clkdev_alloc(clk, NULL, "lm%x:01000", id);
+	/* CLCD pixel clock */
+	imc->clks[0] = clkdev_alloc(clk, NULL, "lm%x:01000", id);
+	imc->clks[1] = clkdev_alloc(pclk, "apb_pclk", "lm%x:01000", id);
 
 	/* VCO2 is also called "CLK2" */
 	imc->vco2name = kasprintf(GFP_KERNEL, "lm%x-vco2", id);
-- 
2.4.3

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

end of thread, other threads:[~2015-08-12  8:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-29 12:23 [PATCH] clk: versatile/impd1: switch order of CLCD clocks Linus Walleij
2015-07-31  6:50 ` Stephen Boyd
2015-07-31 10:26   ` Linus Walleij
2015-08-12  1:25     ` Stephen Boyd
2015-08-12  8:40       ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox