mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] drivers: clk: clk-imx6.c: Don't gate LDB and IPUs
@ 2017-03-03  7:33 David Jander
  2017-03-09  7:18 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: David Jander @ 2017-03-03  7:33 UTC (permalink / raw)
  To: barebox; +Cc: David Jander

Depending on CONFIG_DRIVER_VIDEO_IMX_IPUV3 to decide whether to
gate IPU clocks or not is rather fragile. Any inadvertent
dependency on the IPU (like setting the NoC AQoS registers for
i.MX6QP) will result in a freeze if CONFIG_DRIVER_VIDEO_IMX_IPUV3
is disabled.

Signed-off-by: David Jander <david@protonic.nl>
---
 drivers/clk/imx/clk-imx6.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/clk/imx/clk-imx6.c b/drivers/clk/imx/clk-imx6.c
index 8ac43be..d0571bc 100644
--- a/drivers/clk/imx/clk-imx6.c
+++ b/drivers/clk/imx/clk-imx6.c
@@ -494,10 +494,7 @@ static int imx6_ccm_probe(struct device_d *dev)
 	writel(0xffffffff, ccm_base + CCGR0);
 	writel(0xf0ffffff, ccm_base + CCGR1); /* gate GPU3D, GPU2D */
 	writel(0xffffffff, ccm_base + CCGR2);
-	if (IS_ENABLED(CONFIG_DRIVER_VIDEO_IMX_IPUV3))
-		writel(0x3fffffff, ccm_base + CCGR3); /* gate OpenVG */
-	else
-		writel(0x3fff0000, ccm_base + CCGR3); /* gate OpenVG, LDB, IPU1, IPU2 */
+	writel(0x3fffffff, ccm_base + CCGR3); /* gate OpenVG */
 	if (IS_ENABLED(CONFIG_PCI_IMX6))
 		writel(0xffffffff, ccm_base + CCGR4);
 	else
-- 
2.9.3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2017-03-09  7:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-03  7:33 [PATCH] drivers: clk: clk-imx6.c: Don't gate LDB and IPUs David Jander
2017-03-09  7:18 ` Sascha Hauer

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