[PATCH] ARM: SAMA5D3: Fix PLL registry mapping

Mathieu Anquetin mathieu.anquetin at groupe-cahors.com
Wed Jan 15 02:57:18 EST 2014


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

Signed-off-by: Mathieu Anquetin <mathieu.anquetin at 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




More information about the barebox mailing list