mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Philippe Rétornaz" <philippe.retornaz@epfl.ch>
To: s.hauer@pengutronix.de
Cc: barebox@lists.infradead.org,
	"Philippe Rétornaz" <philippe.retornaz@epfl.ch>
Subject: [PATCH 1/1] ARM: mx31moboard: Fix UPLL and SPLL initialisation
Date: Fri,  7 Mar 2014 19:14:55 +0100	[thread overview]
Message-ID: <1394216095-20377-1-git-send-email-philippe.retornaz@epfl.ch> (raw)

This copy what the previous bootloader was doing on this board.
It fixes USB host 1 clock error as its PHY clock is provided
by the i.MX31.

Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>
---
 arch/arm/boards/mx31moboard/lowlevel.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boards/mx31moboard/lowlevel.c b/arch/arm/boards/mx31moboard/lowlevel.c
index e9ffb74..2294c5a 100644
--- a/arch/arm/boards/mx31moboard/lowlevel.c
+++ b/arch/arm/boards/mx31moboard/lowlevel.c
@@ -59,9 +59,12 @@ static noinline __noreturn void mx31moboard_startup(void)
 	writel(IMX_PLL_PD(0) | IMX_PLL_MFD(0x33) |
 			IMX_PLL_MFI(0xa) | IMX_PLL_MFN(0x0C),
 			MX31_CCM_BASE_ADDR + MX31_CCM_MPCTL);
-	writel(IMX_PLL_PD(1) | IMX_PLL_MFD(0x43) | IMX_PLL_MFI(12) |
+	writel(IMX_PLL_PD(0) | IMX_PLL_MFD(9) | IMX_PLL_MFI(6) |
 			IMX_PLL_MFN(1), MX31_CCM_BASE_ADDR +
 			MX31_CCM_SPCTL);
+	writel(IMX_PLL_PD(1) | IMX_PLL_MFD(12) | IMX_PLL_MFI(9) |
+			IMX_PLL_MFN(3), MX31_CCM_BASE_ADDR +
+			MX31_CCM_UPCTL);
 
 	/*
 	 * Configure IOMUXC
-- 
1.7.9.5


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

                 reply	other threads:[~2014-03-07 18:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1394216095-20377-1-git-send-email-philippe.retornaz@epfl.ch \
    --to=philippe.retornaz@epfl.ch \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox