mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Mathieu Anquetin <mathieu.anquetin@groupe-cahors.com>
To: barebox@lists.infradead.org
Subject: [PATCH] ARM: SAMA5D3: Fix PLL registry mapping
Date: Wed, 15 Jan 2014 08:57:18 +0100	[thread overview]
Message-ID: <1389772638-14689-1-git-send-email-mathieu.anquetin@groupe-cahors.com> (raw)

The multiplier field inside the PLLA configuration register of Atmel
SAMA5D3 MPU is only 7 bits long

Signed-off-by: Mathieu Anquetin <mathieu.anquetin@groupe-cahors.com>
---
 arch/arm/mach-at91/clock.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c
index a10d7f6..4ebf521 100644
--- a/arch/arm/mach-at91/clock.c
+++ b/arch/arm/mach-at91/clock.c
@@ -483,7 +483,7 @@ static u32 at91_pll_rate(struct clk *pll, u32 freq, u32 reg)
 
 	div = reg & 0xff;
 	if (cpu_is_sama5d3())
-		mul = (reg >> 18) & 0x7ff;
+		mul = (reg >> 18) & 0x7f;
 	else
 		mul = (reg >> 16) & 0x7ff;
 	if (div && mul) {
-- 
1.7.10.4


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

                 reply	other threads:[~2014-01-15  7:57 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=1389772638-14689-1-git-send-email-mathieu.anquetin@groupe-cahors.com \
    --to=mathieu.anquetin@groupe-cahors.com \
    --cc=barebox@lists.infradead.org \
    /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