From 079edb913dbae147b50a488cf02e03f473fc5f28 Mon Sep 17 00:00:00 2001 From: Jens Gehrlein Date: Fri, 4 Jul 2008 16:50:05 +0200 Subject: [PATCH] MX31: fix bit masks in function mx31_decode_pll() Bits MPCTL[MFN] and MPCTL[MFD] were not fully covered. Signed-off-by: Jens Gehrlein --- cpu/arm1136/mx31/generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/arm1136/mx31/generic.c b/cpu/arm1136/mx31/generic.c index dc031c92ea..1415d6c2ae 100644 --- a/cpu/arm1136/mx31/generic.c +++ b/cpu/arm1136/mx31/generic.c @@ -27,8 +27,8 @@ static u32 mx31_decode_pll(u32 reg, u32 infreq) { u32 mfi = (reg >> 10) & 0xf; - u32 mfn = reg & 0x3f; - u32 mfd = (reg >> 16) & 0x3f; + u32 mfn = reg & 0x3ff; + u32 mfd = (reg >> 16) & 0x3ff; u32 pd = (reg >> 26) & 0xf; mfi = mfi <= 5 ? 5 : mfi; -- 2.25.1