mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: SAMA5D3: Fix PLL registry mapping
@ 2014-01-15  7:57 Mathieu Anquetin
  0 siblings, 0 replies; only message in thread
From: Mathieu Anquetin @ 2014-01-15  7:57 UTC (permalink / raw)
  To: barebox

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-15  7:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-15  7:57 [PATCH] ARM: SAMA5D3: Fix PLL registry mapping Mathieu Anquetin

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