mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: i.MX53: Set pll3 directly to 216MHz.
@ 2018-06-27 14:07 Mogens Lauridsen
  2018-06-28  8:30 ` Sascha Hauer
  0 siblings, 1 reply; 6+ messages in thread
From: Mogens Lauridsen @ 2018-06-27 14:07 UTC (permalink / raw)
  To: s.hauer, festevam; +Cc: barebox, Mogens Lauridsen

PLL3 was first set to 400MHz and then some peripheral was switched
to PLL3. Finally PLL3 was set to 216MHz. This could make some
i.MX538 hang in a dead loop in the boot process.

Signed-off-by: Mogens Lauridsen <mlauridsen171@gmail.com>
---
 arch/arm/mach-imx/imx53.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/arm/mach-imx/imx53.c b/arch/arm/mach-imx/imx53.c
index 56f1bda75..3fdb3b91a 100644
--- a/arch/arm/mach-imx/imx53.c
+++ b/arch/arm/mach-imx/imx53.c
@@ -119,7 +119,7 @@ void imx53_init_lowlevel_early(unsigned int cpufreq_mhz)
 	else
 		imx5_setup_pll_800((void __iomem *)MX53_PLL1_BASE_ADDR);
 
-	imx5_setup_pll_400((void __iomem *)MX53_PLL3_BASE_ADDR);
+	imx5_setup_pll_216((void __iomem *)MX53_PLL3_BASE_ADDR);
 
         /* Switch peripheral to PLL3 */
 	writel(0x00015154, ccm + MX5_CCM_CBCMR);
@@ -154,7 +154,6 @@ void imx53_init_lowlevel_early(unsigned int cpufreq_mhz)
 	/* make sure change is effective */
 	while (readl(ccm + MX5_CCM_CDHIPR));
 
-	imx5_setup_pll_216((void __iomem *)MX53_PLL3_BASE_ADDR);
 	imx5_setup_pll_455((void __iomem *)MX53_PLL4_BASE_ADDR);
 
 	/* Set the platform clock dividers */
-- 
2.18.0


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

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

end of thread, other threads:[~2018-07-06  6:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-27 14:07 [PATCH] ARM: i.MX53: Set pll3 directly to 216MHz Mogens Lauridsen
2018-06-28  8:30 ` Sascha Hauer
2018-06-28 13:56   ` Mogens Lauridsen
2018-06-29  8:10     ` Sascha Hauer
2018-07-02  9:56       ` Mogens Lauridsen
2018-07-06  6:17         ` Sascha Hauer

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